DQL: Opposite of func: has(field)

What I want to do

I would like to query every not that does not have a field.

What I did

Query every node that has the field “name”:

{
  q(func: has(name)) {
		uid
  }
}

How to do the opposite? Which nodes do not have this field?

Dgraph metadata

dgraph version

Dgraph version : v21.03.0
Dgraph codename : rocket
Dgraph SHA-256 : b4e4c77011e2938e9da197395dbce91d0c6ebb83d383b190f5b70201836a773f
Commit SHA-1 : a77bbe8ae
Commit timestamp : 2021-04-07 21:36:38 +0530
Branch : HEAD
Go version : go1.16.2
jemalloc enabled : true

Assuming you gave every node a type:

{
  q(func: has(dgraph.type)) @filter(NOT has(name)) {
    count(uid)
  }
}

Note however, that this will be quite slow.