quantified-uncertainty / metaforecast

Fetch forecasts from prediction markets/forecasting platforms to make them searchable. Integrate these forecasts into other services.
https://metaforecast.org/
MIT License
56 stars 5 forks source link

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

Open danwahl opened 1 year ago

danwahl commented 1 year ago

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/graphiql@2.4.3/dist/yoga-graphiql.es.js:34989:101\n    at https://unpkg.com/@graphql-yoga/graphiql@2.4.3/dist/yoga-graphiql.es.js:36035:13"
  }
}