Closed hmoule closed 4 years ago
these features will not work with template tag replacement. there is no graphql parser that will support this, sadly!
maybe in a later version when we have a way to parse graphql this way. apollo's extension has the same issue
This issue has been closed prematurely.
Although it makes sense you can't execute the query when the template string is using interpolation, surely the extension could detect that situation and not display an inline "Execute query" button that has broken functionality.
GraphQL queries in template strings with interpolation is a common, perfectly valid pattern - especially for including fragments like @hmoule displayed in his examples.
Actual Behavior
No execute query option
Expected Behavior
Execute query option with graphql tags
Steps to Reproduce the Problem Or Description
Specifications
Logs Of TS Server || GraphQL Language Service