Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AST node#1311

Unanswered
Pizza1 asked this question inQ&A
Jan 13, 2025· 0 comments
Discussion options

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

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
1 participant
@Pizza1
Converted from issue

This discussion was converted from issue #1310 on January 13, 2025 02:05.


[8]ページ先頭

©2009-2025 Movatter.jp