Replies: 1 comment 1 reply
-
This is a limitation in GraphQL specification. Introspection result doesn't have directives by its design. GraphQL Tools unfortunately have nothing to do with that. As a workaround you can add a query field |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying, using the 'stitching' pattern, to integrate a remote GQL service that is supposed to manage only the 'query' part of the logic. The remote service exposes 3 directives (limit, offset, order).
Using 'introspectSchema' and and 'executor' based on 'cross-undici-fetch' (as per documentation examples) I retrieve the remote schema definitions. When I print the introspection result done via the 'executor', I can see the 3 directives are part of the subschema.
After the subschema is stitched and passed to the Apollo server, the directives are not exposed in the final service.
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions