Filter doesn't work

Hi @spinelsun,

Dgraph GraphQL stores data inside Dgraph database. Every GraphQL query is converted into DQL query, executed on the database and the result is returned back after converting to GraphQL response.

The error states that for one of the nodes of type Credentials, the forUser field does not exist. As forUser field is non-nullable, this is returned as an error.

Possible Reasons could be:

  1. The Data for the node has been changed using DQL mutation.
  2. There already exists some data in Dgraph with missing forUser field for type Credentials and GraphQL Schema is applied on it.

The error should not occur if data has been inserted and updated using only GraphQL.How was data inserted in the Dgraph instance ? If the data was inserted using DQL, can you check if there is any node of type Credentials with missing forUser field.