I am using graphql-requst
node module.
My problem is how can I get the operationName from the gql query string.
I referenced this question, but I can't get the query's DocumentNode object.
I think I can get the operationName after parse the gql string to the DocumentNode object.
How can I solve this problem?
Asked
Active
Viewed 760 times
2

Jose Cipriano Neto
- 47
- 7