function

OptionFilterValueFor

OptionFilterValueFor limits a static option filter to one polymorphic target.

Arguments

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

Returns

The declared result.

RelationshipFilterRule

Full signature

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

Source field/filter.go:29

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.