Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Link to Sample Project with GQLGen and Postgres #974

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

oshalygin
Copy link
Contributor

@oshalygin oshalygin commented Jan 6, 2020

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:

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)
@coveralls
Copy link

Coverage Status

Coverage remained the same at 63.81% when pulling f49936e on oshalygin:docs/gqlgen-pg-example-repo into f869f5a on 99designs:master.

@vektah vektah merged commit 56b8eef into 99designs:master Jan 6, 2020
@vektah
Copy link
Collaborator

vektah commented Jan 6, 2020

Thanks, This looks useful for newcomers :)

@oshalygin oshalygin deleted the docs/gqlgen-pg-example-repo branch January 6, 2020 05:23
cgxxv pushed a commit to cgxxv/gqlgen that referenced this pull request Mar 25, 2022
…e-repo

Add Link to Sample Project with GQLGen and Postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants