Screenshot
Description
I'm trying to do a gql request as follows
query is
const GET_POSTS = gqlquery GetPosts($cursor: String) { posts(after: $cursor) { edges { node { id title content } cursor } pageInfo { hasNextPage endCursor } } };
variables is {cursor: null}
and query is
const fetcher = (query, variables) => graphQLClient.request(query, variables);
(GET_POSTS is passed as query, {cursor : null} is passed as variables)
But keep getting the error message
Error: Invalid AST Node: [function proxy].
at devAssert (devAssert.mjs:5:1)
at visit (visitor.mjs:168:32)
at print (printer.mjs:10:15)
at analyzeDocument (analyzeDocument.js:31:71)
at GraphQLClient.request (GraphQLClient.js:65:49)
at fetcher
What might be the reason for this?
Thank you
Reproduction Steps/Repo Link
Screenshot
Description
I'm trying to do a gql request as follows
query is
const GET_POSTS = gql
query GetPosts($cursor: String) { posts(after: $cursor) { edges { node { id title content } cursor } pageInfo { hasNextPage endCursor } } };variables is {cursor: null}
and query is
const fetcher = (query, variables) => graphQLClient.request(query, variables);
(GET_POSTS is passed as query, {cursor : null} is passed as variables)
But keep getting the error message
Error: Invalid AST Node: [function proxy].
at devAssert (devAssert.mjs:5:1)
at visit (visitor.mjs:168:32)
at print (printer.mjs:10:15)
at analyzeDocument (analyzeDocument.js:31:71)
at GraphQLClient.request (GraphQLClient.js:65:49)
at fetcher
What might be the reason for this?
Thank you
Reproduction Steps/Repo Link