-
Notifications
You must be signed in to change notification settings - Fork 3
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
time.Time conversion generates boilergql.TimeTimeToTime() #7
Comments
Are both times exactly the same type? |
Based on TimeTimeToTime they are |
Strange, looking into it! |
Yah, types are equal |
It should skip these as custom convert since type should be the same here Just to be sure I did not know gqglen supported go timestamps when will they be generated? |
So I can test if it's fixed. It generates as Int for me a.t.m. maybe we should change in sqlboiler-graphql-schema too. |
Thats what I have in gqlgen.yml
and graphql.schema uses them like
|
|
Ok, I'm working on createdAt, updatedAt too a.t.m. will hopefully be able to reproduce this bug this evening and release a new version! |
Maybe you can speedup this process I need more types to ignore in input but multiple ignores like this do not work https://github.com/web-ridge/sqlboiler-graphql-schema have you used multiple ignores yet? |
I haven't. Going to try |
I found it |
Needs to be this I'll update documentation for that and going on with the timestamp! |
<-- forgot cli snippet: Needs to be this --skip-input-fields=organizationId --skip-input-fields=createdAt --skip-input-fields=updatedAt I'm up and running but I need to add some extra changes since timestamps are nullable in database a.t.m. |
One side effect we need to update this repo with also TimeTime on grapql side. It looks a little strange but it will work with future packages too |
You also need to update this package since there will be changes to conversion functions |
So updating to github.com/web-ridge/[email protected] Should fix this bug |
Thats with the latest release.
|
Oh my bad.. will fix this. You have TimeFilter in your schema added then or not? It will become TimeDotTimeToMods |
Sorry I ment: https://github.com/web-ridge/gqlgen-sqlboiler/releases |
|
Please add TimeDotTimeToMods add it as a filter_custom.go in your helpers package like this we need to do more work to support all gqlgen scalars and/or custom scalars + enums in filtering. It need some more polishing and I don't think I have time this month but will invest more next month in new features. I'm not sure this will be first but I think also in improving merging or overriding functions and adding support for multiple schema.graphql so you can opt-out for some schema's not sure yet. We want to support this so I created some issues in both repositories to improve the custom scalars |
filter_custom.go so it will not be overridden when you convert again ;) |
Closing in favor of the issues |
expected
The text was updated successfully, but these errors were encountered: