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
Directives may be provided in a specific syntactic order which may have semantic interpretation.
These two type definitions may have different semantic meaning:
Before graphql-tools@v8, I used SchemaDirectiveVisitor, schemaDirectives and the behavior was expected.
But graphql-tools@v8, I think it was not so. It's depends on mapSchema/transformer applied order.
Is that right ? I couldn't find the graphql-tools mapSchema specification, is there any way to execute directives by schema defined order?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It seems that multiple custom directives are not executed by schema defined order.
I expect that the behaviors differ depending on schema definition order.
ref: https://spec.graphql.org/October2021/#sec-Language.Directives.Directive-order-is-significant
Before graphql-tools@v8, I used
SchemaDirectiveVisitor
,schemaDirectives
and the behavior was expected.But graphql-tools@v8, I think it was not so. It's depends on
mapSchema
/transformer
applied order.Is that right ? I couldn't find the graphql-tools
mapSchema
specification, is there any way to execute directives by schema defined order?rel: #3419
Beta Was this translation helpful? Give feedback.
All reactions