Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoPointToPgeoPoint is used for pointer type #3

Closed
troian opened this issue May 11, 2020 · 8 comments
Closed

GeoPointToPgeoPoint is used for pointer type #3

troian opened this issue May 11, 2020 · 8 comments

Comments

@troian
Copy link
Collaborator

troian commented May 11, 2020

In convert_input.go boilergql.GeoPointToPgeoPoint used with pointer receiver.

expected:
boilergql.PointerGeoPointToPgeoPoint should be used instead

@RichardLindhout
Copy link
Member

Strange, are you sure it's a pointer in your generated_models.go from gqlgen?
Based on this function it should https://github.com/web-ridge/gqlgen-sqlboiler/blob/master/convert.go#L879 when there is a * in front of type.

@troian
Copy link
Collaborator Author

troian commented May 11, 2020

Yah, boilergql.PointerGeoPointToPgeoPoint was set manualy
Screen Shot 2020-05-11 at 8 24 19 AM

@RichardLindhout
Copy link
Member

I know where this is coming from, it is caused by custom types which are imported from other packages where the * is stripped from the type in gqlgen-sqlboiler.

I have a fix already but testing it internally!

RichardLindhout added a commit to web-ridge/gqlgen-sqlboiler that referenced this issue May 11, 2020
@RichardLindhout
Copy link
Member

This should be fixed in [email protected]

@troian
Copy link
Collaborator Author

troian commented May 11, 2020

Cheers, I'll check

@RichardLindhout
Copy link
Member

Does it work?

@troian
Copy link
Collaborator Author

troian commented May 11, 2020

Yah, sorry for late response

@RichardLindhout
Copy link
Member

Haha no worries, soon enough just curious :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants