gqlgen-tutorials icon indicating copy to clipboard operation
gqlgen-tutorials copied to clipboard

Both examples use deprecated NewDefaultServer

Open brackendawson opened this issue 7 months ago • 1 comments

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.

brackendawson avatar Jul 04 '25 13:07 brackendawson

@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!

StevenACoffman avatar Jul 04 '25 16:07 StevenACoffman