function

OptionFilterFor

OptionFilterFor limits an option-filter rule to one target of a polymorphic relationship.

Arguments

ArgumentTypeDescription
collectionstringThe collection value.
targetPathstringThe targetPath value.
operatorRelationshipFilterOperatorThe operator value.
sourcePathstringThe sourcePath value.

Returns

The declared result.

RelationshipFilterRule

Full signature

func OptionFilterFor( collection, targetPath string, operator RelationshipFilterOperator, sourcePath string, ) RelationshipFilterRule

Source field/filter.go:11

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.