I'm still seeing issues when adding a @mixin to a fragment. I saw https://github.com/mirumee/ariadne-codegen/issues/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
type Item {
id: ID
}
type Mutation {
change_item(id: ID!): Item
}
sample-queries.graphql
fragment Item on Item @mixin(from: "sample_mixin", import: "ItemMixin") {
id
}
mutation my_mutation($id: ID!) {
change_item(id: $id) {
...Item
}
}
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.
I'm still seeing issues when adding a
@mixin
to a fragment. I saw https://github.com/mirumee/ariadne-codegen/issues/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: