gqlgen icon indicating copy to clipboard operation
gqlgen copied to clipboard

Add omitempty json tags for nullable fields

Open 0xfourzerofour opened this issue 2 years ago • 1 comments

There is already an open pr for this feature however it had merge conficts so I would like to fix those and merge this. This feature helps a lot when you are using the generated structs with external services. e.g Saving data to an DB

0xfourzerofour avatar Aug 13 '22 05:08 0xfourzerofour

Thanks for freshening this up! It looks like there are some lint and test problems with this PR.

Can you try:

go generate; cd _examples; go generate; cd ..
go test ./...; cd _examples; go test ./...

StevenACoffman avatar Aug 17 '22 14:08 StevenACoffman