gqlgen-tutorials
gqlgen-tutorials copied to clipboard
Both examples use deprecated NewDefaultServer
Both of the examples in this repo use the deprecated NewDefaultServer constructor:
- https://github.com/vektah/gqlgen-tutorials/blob/8ec5be4e7558dc2fe9a54f1753f2286763cd2700/gettingstarted/server.go#L22
- https://github.com/vektah/gqlgen-tutorials/blob/8ec5be4e7558dc2fe9a54f1753f2286763cd2700/dataloader/server.go#L46
I came here via https://gqlgen.com/getting-started/ to try to find out what to use instead of NewDefaultServer, because the deprecation note does not say what you should use and just using New by itself will not work.
Basically; the docs should show how to use gqlgen in production.
@vektah I didn't know about this repo! Can you make me a collaborator and I can spruce it up? Hope you are doing well!