Not equal operator !eq

I can get
type(func: term(live, “human”)) {
name
}
How I can get not equal term (!term) or !eq ?

You can use connectives for filters. There are no operators for Query Root other than by filter.

{
  me(func: has(is_animal)) @filter(NOT allofterms(live, “human”)) {
    name@en
  }
}

https://docs.dgraph.io/query-language/#and-or-and-not

2 Likes