Golang Lambda Function for RDS Postgres

I have never worked with lambda on AWS or Graphql but is this what you are aiming for https://aws.amazon.com/blogs/mobile/building-real-time-serverless-apis-with-postgres-cdk-typescript-and-aws-appsync/ - not written in Go but just to know what you are talking about