GraphQL "not equal" operator?
If you can define the schema (implement the server) then you can add a second argument like statusExcept
to the items
field. Then in the resolve method check if status or statusExcept was set and deliver the items according to that.
It the server API is fixed there is afaik nothing that you can do except getting everything and filter on the client.
Use ne
:
{
items(filter: {status: {ne: "Unwanted"}}){
id
}
}