Tag: graphql-tag
-
how to use grapqhl-scalars with graphql-tag “gql`” syntax?
0 I am reading through this page: https://the-guild.dev/graphql/scalars/docs/quick-start It explains how to get pre-built graphql scalars. The examples on the page about how to use these scalars, seem to be using a code-first approach to building a schema. I am not sure how to use these scalars with the SDL-first approach where I have a…
-
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…