function

OptionFilterValue

OptionFilterValue compares a target field with one static scalar value. Literal filters are applied by both admin pickers and server-side reference admission.

Arguments

ArgumentTypeDescription
targetPathstringThe targetPath value.
operatorRelationshipFilterOperatorThe operator value.
valueValueThe value value.

Returns

The declared result.

RelationshipFilterRule

Full signature

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

Source field/filter.go:19

Related types

  • RelationshipFilterOperator

    RelationshipFilterOperator is the finite predicate vocabulary used to narrow admin options.

  • RelationshipFilterRule

    RelationshipFilterRule derives one target predicate from current document data. Collection optionally limits the rule to one target of a polymorphic relationship.