MCPcopy Create free account
hub / github.com/Permify/permify / Intersection

Function Intersection

pkg/schema/builder.go:287–296  ·  view source on GitHub ↗

Intersection - Returns a child element that represents the intersection of the given children. This child element can be used in defining entity relations and actions.

(children ...*base.Child)

Source from the content-addressed store, hash-verified

285
286// Intersection - Returns a child element that represents the intersection of the given children. This child element can be used in defining entity relations and actions.
287func Intersection(children ...*base.Child) *base.Child {
288 return &base.Child{
289 Type: &base.Child_Rewrite{
290 Rewrite: &base.Rewrite{
291 RewriteOperation: base.Rewrite_OPERATION_INTERSECTION,
292 Children: children,
293 },
294 },
295 }
296}
297
298// Exclusion - Returns a child element that represents the exclusion of the given children. This child element can be used in defining entity relations and actions.
299func Exclusion(children ...*base.Child) *base.Child {

Callers 1

builder_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected