I have two GraphQL files: mutations.js
and queries.js
under a gql
folder...
This folder contains GraphQL mutations and queries used across the app.
gql
mutations.js
queries.js
I set up the GraphQL endpoint, but i keep getting this error:
Uncaught (in promise) Error: GraphQL error: field "users" not found in type: 'query_root'
NB: None of the GraphQL queries or mutation contain errors