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

Method Add

pkg/database/collections.go:35–37  ·  view source on GitHub ↗

Add - New subject to collection.

(tuple *base.Tuple)

Source from the content-addressed store, hash-verified

33
34// Add - New subject to collection.
35func (t *TupleCollection) Add(tuple *base.Tuple) {
36 t.tuples = append(t.tuples, tuple)
37}
38
39// ToSubjectCollection - Converts new subject collection from given tuple collection
40func (t *TupleCollection) ToSubjectCollection() *SubjectCollection {

Callers 3

TestTupleCollectionFunction · 0.95
OperationFunction · 0.95
QueryRelationshipsMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestTupleCollectionFunction · 0.76