tailcallhq / tailcall

High Performance GraphQL Runtime
https://tailcall.run
Apache License 2.0
1.19k stars 210 forks source link

`@graphql` does not forward unknown directives to upstream GraphQL servers #2242

Open amitksingh1490 opened 1 week ago

amitksingh1490 commented 1 week ago

Currently, when using the @graphql directive, directives included in the query are not forwarded to upstream GraphQL servers. This behavior can lead to issues when upstream servers have custom resolvers designed to interpret specific directives, such as @cascade as detailed in the Dgraph documentation.

Expected:

The @graphql handler should forward directives that Tailcall does not recognize to the upstream server. This allows the use of server-specific directives and ensures that custom resolvers on the server can function correctly.

meskill commented 1 week ago

Blocked by https://github.com/async-graphql/async-graphql/issues/1547