We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support fragment?
The text was updated successfully, but these errors were encountered:
If the fragment is within the query, it should work
Sorry, something went wrong.
Using the template string variable expansion doesn't work with nanographql
export const GET_LESSONS = gql` query { lessons { ...LessonFields } } ${LessonFields}`
The above leads to a query with nothing where the fragment should be.
It is being treated as a tagged template literal, but it is not coded to handle parameters like that.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
Instead you can do below, evaluate it before it goes to the function
gql(`query .... ${fragment}`)
No branches or pull requests
support fragment?
The text was updated successfully, but these errors were encountered: