function

OptionFilterFor

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

Scope a predicate to a polymorphic target.

Source field/options.go:1038

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

Related types