MCPcopy
hub / github.com/ent/ent / BoolNot

Function BoolNot

entql/types.go:98–104  ·  view source on GitHub ↗

BoolNot returns a predicate that represents the logical negation of the given predicate.

(x BoolP)

Source from the content-addressed store, hash-verified

96
97// BoolNot returns a predicate that represents the logical negation of the given predicate.
98func BoolNot(x BoolP) BoolP {
99 expr := &boolP{}
100 expr.done = func(name string) {
101 expr.P = Not(x.Field(name))
102 }
103 return expr
104}
105
106// BytesP is the interface for predicates of type []byte (`type P[[]byte]`).
107type BytesP interface {

Callers 1

TestFielderFunction · 0.85

Calls 2

NotFunction · 0.70
FieldMethod · 0.65

Tested by 1

TestFielderFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…