From f49936eb9a89336beb3677490ef687fb7b6a408e Mon Sep 17 00:00:00 2001 From: Oleg Shalygin Date: Sun, 5 Jan 2020 21:07:11 -0800 Subject: [PATCH] Add Link to Sample Project with GQLGen and Postgres This is a very straightforward project with numerous details in the README and the official documentation, but questions continue to pop up around how to use this project, organize the files and ultimately make data calls to some persistent layer. The `https://github.com/oshalygin/gqlgen-pg-todo-example` was built in order to show newcomers the following: - How to organize their graphql schema, resolvers, dataloaders and models - How to create a new dataloader - How to resolve with a dataloader and how to avoid some of the pitfalls(inconsistent db query to keys array order) - How to map models from a gql schema to structs While the examples in this project are helpful, they could benefit from more elaborate explanations in the code as well as the README to help newcomers get started. This PR is not intended to portray any of the examples negatively and should not be interpreted as such. There are many findings/lessons learned from the work that folks put together in those examples. README which covers a ton of the details on how to use this project: - [README](https://github.com/oshalygin/gqlgen-pg-todo-example) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8b4fcd51447..3fb796cc839 100644 --- a/README.md +++ b/README.md @@ -107,3 +107,4 @@ There isnt any way around this, gqlgen has no way to know what you want in a giv - [Christopher Biscardi @ Gophercon UK 2018](https://youtu.be/FdURVezcdcw) - [Introducing gqlgen: a GraphQL Server Generator for Go](https://99designs.com.au/blog/engineering/gqlgen-a-graphql-server-generator-for-go/) - [Dive into GraphQL by Iván Corrales Solera](https://medium.com/@ivan.corrales.solera/dive-into-graphql-9bfedf22e1a) +- [Sample Project built on gqlgen with Postgres by Oleg Shalygin](https://github.com/oshalygin/gqlgen-pg-todo-example)