Tag: syntax-error
-
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…