Replies: 2 comments 1 reply
-
Did you find any solution to this problem? |
Beta Was this translation helpful? Give feedback.
-
This isn't going to work. By the time resolver is hit, query executor has already created resolver graph and is walking it (not query AST). Fragment of this graph containing current node and child nodes is available via @swatkatz @Namrata766 Can you provide more detailed example of what problem you are trying to solve? From your description it sounds like what you are trying to do is VERY BAD and there's gotta be better way. |
Beta Was this translation helpful? Give feedback.
-
Hi,
When
graphql_sync
orgraphql
gets called, ariadne uses the parser from graphql-core to parse the query. I want to access this query document in my resolver for transforming part of the query to an existing system in order to execute the logic in that resolver.Is there a way to access this document using
info
or the execution context within the resolver? If not, what would be the recommended approach of providing this information to the resolver? I am trying to avoid parsing the query twice and storing the parsed query in "my context".Beta Was this translation helpful? Give feedback.
All reactions