Closed gauravverma029 closed 4 years ago
You should not use gql
from graphql-tag
with graphql-react
; just use plain template strings:
https://github.com/jaydenseric/graphql-react#writing-queries
You can use gql
from fake-tag
if you need to tag for dev tools that don't understand /* GraphQL */
comments (e.g. see https://github.com/apollographql/eslint-plugin-graphql/issues/224).
Your issue might be quite simple though: Your example query with useGraphQL
has a syntax error at the start.
I want to move my gql query to useGraphQL query.I am getting errors.i do not want to use gql now.