GraphQL: Only fetch objects with a certain property equals `null`

GraphQL: Only fetch objects with a certain property equals `null`


0

I have a GraphQL query

query testQuery {
  books {
    title
    isbn
    publisher
    metadata {
      propertyA
      propertyB
      propertyC
    }
  }
}

In the GraphQL schema, metadata is an optional field. The other three are required, and all of them are string.

My question: I only want to filter items where the metadata is null or empty. I use GraphiQL.

For a string I can use where: {someString: {_isNull: true}}, but for a nested object this is not possible.

Share


Load 4 more related questions


Show fewer related questions

0

Reset to default



Browse other questions tagged

or ask your own question.

Leave a Reply

Your email address will not be published. Required fields are marked *