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

GraphQL error: "Cannot use 'in' operator to search for 'hasNext' in undefined" #96

Open
danwahl opened this issue Oct 23, 2022 · 0 comments

Comments

@danwahl
Copy link

danwahl commented Oct 23, 2022

As of pretty recently (Oct 13?) I've been getting GraphQL errors on queries that were previously working (most of the time). Here's an example that fails in the Yoga GraphiQL IDE:

{
  questions(first: 100) {
    pageInfo {
      hasNextPage
      endCursor
    }
    edges {
      node {
        id
        fetched
        history {
          options {
            name
            probability
          }
          qualityIndicators {
            stars
            numForecasters
            numForecasts
          }
        }
      }
    }
  }
}

And the error:

{
  "errors": {
    "message": "Cannot use 'in' operator to search for 'hasNext' in undefined",
    "stack": "TypeError: Cannot use 'in' operator to search for 'hasNext' in undefined\n    at https://unpkg.com/@graphql-yoga/[email protected]/dist/yoga-graphiql.es.js:34989:101\n    at https://unpkg.com/@graphql-yoga/[email protected]/dist/yoga-graphiql.es.js:36035:13"
  }
}
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

1 participant