You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use of @skip and @ignore directives with gql.dsl #479
@leszekhanusz, I was looking at the graphql-core library and it looks like the directives are now supported in directives.py and DirectiveNode is part of the AST. It's not clear to me whether incremental delivery directives like @defer and @stream are supported yet, but for directives that don't require any extra client-side work it looks like it should be possible to include them in the DSL module with the current state of graphql-core.
Would you be open to extending the DSL module to support to entirely server-side directives like @skip, @ignore, @include, etc?
Activity
leszekhanusz commentedon May 17, 2024
Directives are not currently supported with the dsl module.
kasbaker commentedon Aug 22, 2025
@leszekhanusz, I was looking at the
graphql-corelibrary and it looks like the directives are now supported in directives.py and DirectiveNode is part of the AST. It's not clear to me whether incremental delivery directives like@deferand@streamare supported yet, but for directives that don't require any extra client-side work it looks like it should be possible to include them in the DSL module with the current state ofgraphql-core.Would you be open to extending the DSL module to support to entirely server-side directives like
@skip,@ignore,@include, etc?Here's a quick sketch of what this might look from based off the examples in https://graphql.org/learn/queries/#directives
I'm happy to help draft a PR for this if you're open to it. Let me know if you're interested!
leszekhanusz commentedon Aug 22, 2025
Yes, please, a PR is welcome!
kasbaker commentedon Aug 27, 2025
@leszekhanusz, I just opened a PR here: #563