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.
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 thatTailcall
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.