Appollo Graphql return null edge whilst it return data in graphiql

 query JobOpportunities{
    user(rawId: 3009){
      jobOpportunities(first: 4){
        edges{
          node{
            id
          }
          cursor
        }
      }
    }
  }

The code above returns data when I use it in graphiql, but return null when I use it in my react application.
Per my observations it looks like it only happen on connection(edges/nodes)
Please does anyone have an idea why?

I fiugred it, the API wasn’t working, I solved it by creating a new API key

1 Like