Closed troian closed 4 years ago
This is fixed now! String ID's are much easier in than uint id's so it's less code: See diff's here: https://github.com/web-ridge/gqlgen-sqlboiler-examples/commit/0f97c0b49756135ef5d7f175c486af47e0178340#diff-b5ff484723abe18103dcd846f791034b
You also need to update boilgql package by putting this into you go.mod
github.com/web-ridge/utils-go/boilergql master
And run
go mod tidy
Unfortunately, it remains the same
Latest github.com/web-ridge/utils-go/boilergql
generates exactly the same IDFilterToMods
as in the first comment
You need to upgrade gqlgen-sqlboiler to v2.0.7 because boilergql.IDToBoiler( are not needed in your case since they are UUID's.
boilergql.IDToBoiler were only needed to make int id's unique across whole schema (by putting the model name in front of it). So in your case we don't need any of those converts so you need to update the generator.
You should see the following change
expected