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

Issue with - distinguishing between null and absent values #446

Open
LiLatee opened this issue Feb 16, 2024 · 3 comments
Open

Issue with - distinguishing between null and absent values #446

LiLatee opened this issue Feb 16, 2024 · 3 comments

Comments

@LiLatee
Copy link
Contributor

LiLatee commented Feb 16, 2024

Hi! 👋
I've updated packages in order to use that #381 cool feature, but I've encountered an issue in schema.schema.gql.dart file. I have a custom serializer CustomDateSerializer that changes Date scalar GQL type into CustomDate dart class, but in newly generated part of the code it tries to use that CustomDate class from the wrong file.
It should use _i4 instead of _i2.
image
image

Is there a chance that I've made some mistake on my side or should I try to find the error in the generator?

@knaeckeKami
Copy link
Collaborator

It's likely a bug in the generator - see also gql-dart/ferry#582 (comment)

but i didn't have time to look into it yet - but it could be related to having multiple operations in the same file

@LiLatee
Copy link
Contributor Author

LiLatee commented Feb 16, 2024

Oh my mistake I haven't checked new issues. Ok, good to know. I will try to take a look at the issue on the weekend. 👌

@knaeckeKami
Copy link
Collaborator

knaeckeKami commented Feb 16, 2024

Thanks!
It almost certainly has something to do with the used Allocators - this is the class that adds the prefixes.

(i suspect not with the implementation of the GqlAllocator, as it is pretty straight forward - more with the usage)

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