function

OptionFilterValueFor

func OptionFilterValueFor[ Value ~string | ~bool | ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~float32 | ~float64, ]( collection, targetPath string, operator RelationshipFilterOperator, value Value, ) RelationshipFilterRule

Construct a target-scoped relationship-choice predicate from a typed literal value.

Source field/options.go:1056

@param collection
The collection value.
@param targetPath
The targetPath value.
@param operator
The operator value.
@param value
The value value.
@returns
The declared result.

Related types