rubeonline
rubeonline

Reputation: 1298

Graphql contentful query with error 'cannot query field'

I'm using gatsbyJS with contentful. When I start to query any contentful content I don´t get the support from graphql. When I start to type "allContentful*" no contentful stuff appears:

No contentful support

When i do a query, the query works. But the underline is red and i have no chance to see which types are available:

enter image description here

Upvotes: 5

Views: 3270

Answers (2)

Andrew Birks
Andrew Birks

Reputation: 890

GraphQL Gatsby Cache

Just to be 100% clear, for anyone else who gets this issue...

This is the cache which I needed to clear / delete.

Once removed, the new GraphiQL interface / types loaded

Upvotes: 2

Khaled Garbaya
Khaled Garbaya

Reputation: 1497

This can be related to GraphiQL cache. Try to clear the cache or open the URL in incognito mode and see if the problem persists

Upvotes: 4

Related Questions