-
Notifications
You must be signed in to change notification settings - Fork 35
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
Mixin not stripped from Fragments (take 2) #297
Comments
I confirm this doesn't work currently. Seems like the PR in the other issue addresses only the part when the mixin is defined in a field, not on the entire fragment. |
@dhay I've just rechecked today and got surprised as besides obviously wrong GraphQL code, my queries are still working with the unstripped mixin directive, I have no idea why. Does it fail for you? |
It’s definitely still an issue. In fact I just ran into it again in another project I was recently working on. Maybe it depends on which server implantation is in play? We’re using the Node.js federation server. Perhaps it’s more strict about GraphQL syntax than other servers? |
Probably. I'm using Hasura and it's quite surprisingly letting this one go |
I'm still seeing issues when adding a
@mixin
to a fragment. I saw #176, but the issue persists. In my case, I'm trying to add the mixin to the fragment itself, not a field within the fragment.sample-schema.graphql
sample-queries.graphql
sample_mixin.py
sample.toml
Running
ariadne-codegen --config sample.toml
results in aclient.py
that looks like this:$ pip list | grep ariadne ariadne-codegen 0.13.0
The text was updated successfully, but these errors were encountered: