You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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
This discussion was converted from issue #1310 on January 13, 2025 02:05.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
Beta Was this translation helpful? Give feedback.
All reactions