Tag: react-apollo
-
GraphQL gql Syntax Error: Expected Name, found }
84 I’m attempting to set up Apollo GraphQL support in a new React project, but when I try to compile a query using gql I keep receiving the error: Syntax Error: Expected Name, found } This is generated by the following code: import gql from ‘graphql-tag’ const query = gql` { user(id: 5) { firstName…
-
`Cannot use e “__Schema” from another module or realm.` and `Duplicate “graphql” modules` using ApolloClient
5 I have a React application with ApolloClient with Apollo-Link-Schema. The application works fine locally but in our staging environment (using GOCD), we get the following error: Uncaught Error: Cannot use e “__Schema” from another module or realm. Ensure that there is only one instance of “graphql” in the node_modules directory. If different versions of…
-
Issue with React App Strapi GraphQL Mutation for Creating Comments
0 I’m currently facing an issue with my React app where I’m attempting to create a new entry using GraphQL mutation. When I executed the following code in the Strapi GraphQL playground, it worked successfully, and the entry appeared on the Strapi dashboard: mutation{ createComment( data: { userName: "Jane" content: "fdfddf" post: 3 publishedAt: "2023-08-19T06:32:49.783Z"…
-
GraphQL: TypeError: Cannot read property of undefined
2 I have an Apollo GraphQL projects where I have created my own Query and Mutations. I have done using mock data and Query and Mutation works fine. But when I am trying to do with Sequelize ORM, I am getting the error "TypeError: Cannot read property ‘getListings’ of undefined", " at listings (/home/ayman/Desktop/apollo-graphql/graphql-app/functions/graphql.js:50:19)", "…