interface

Operand

A value that Equal, NotEqual, and In compare with a field.

Example

go
query.Equal("featured", true)

How it works

Strings, booleans, integers, floats, named types of those, and Value. Integers beyond ±2^53 and non-finite floats panic, because a number is stored as a 64-bit float.

Full signature

type Operand interface { ~string | ~bool | ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~float32 | ~float64 | Value }

Source query/value.go:41