Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when querying for User.baseballCards #604

Open
ZozoozoZ opened this issue Jul 5, 2024 · 1 comment
Open

Error when querying for User.baseballCards #604

ZozoozoZ opened this issue Jul 5, 2024 · 1 comment

Comments

@ZozoozoZ
Copy link

ZozoozoZ commented Jul 5, 2024

I can not retrieved the baseballCards field when querying the server while it is working on the playground.

The common request is :

query get_user_info {
    user(slug:"paweltrader") {
        cardsCount
        createdAt
        nickname
        slug
        baseballCards(first:10) {
            nodes {
                id
                slug
            }
            pageInfo {
                endCursor
                hasNextPage
                hasPreviousPage
                startCursor
            }
        }
    }
}

I am getting rejected when querying the production server with an UnprocessableEntity http status code :
The HTTP request failed with status code UnprocessableEntity ({"errors":[{"message":"Field 'baseballCards' doesn't exist on type 'User'","extensions":{"code":"UNPROCESSABLE_ENTITY"}}]})

While the request is working on the playground :
image

To notice that the request is working fin in both case when I remove the baseballCards field.

Could you point an issue ?

@such
Copy link
Member

such commented Nov 25, 2024

Hello,

You should use "user.cards(sport: BASEBALL, first: 10) { nodes { slug } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants