web-ridge / gqlgen-sqlboiler

This is a plugin for gqlgen to generate converts + filter queries and resolvers for sqlboiler
MIT License
75 stars 13 forks source link

Fix filtering for string id's #14

Closed RichardLindhout closed 4 years ago

RichardLindhout commented 4 years ago

We need to fix filters when model has string primary id's instead of uints https://github.com/web-ridge/gqlgen-sqlboiler/issues/12#issuecomment-625532393

troian commented 4 years ago

Yah, I think I've just got this one

graph/helpers/convert_input.go:186:3: cannot use boilergql.IDToNullBoiler(boilergql.PointerStringToString(m.MeetingID)) (type null.Uint) as type null.String in field value
graph/helpers/convert_input.go:254:3: cannot use boilergql.IDToNullBoiler(boilergql.PointerStringToString(m.MeetingID)) (type null.Uint) as type null.String in field value
RichardLindhout commented 4 years ago

That's another one I think since this is about the filter.go which does not complain as in compile issues but does not work.

RichardLindhout commented 4 years ago

Strange that it still generates IDToNullBoiler since you're using string id's it should not use the ID functions anymore.

RichardLindhout commented 4 years ago

Fixed in: v2.0.7