function

OptionFilter

OptionFilter derives one relationship-choice predicate from current document data.

Arguments

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

Returns

The declared result.

RelationshipFilterRule

Full signature

func OptionFilter( targetPath string, operator RelationshipFilterOperator, sourcePath string, ) RelationshipFilterRule

Source field/filter.go:6

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.