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

Method IsRelationReferenceExist

pkg/dsl/ast/references.go:206–211  ·  view source on GitHub ↗

IsRelationReferenceExist checks if a relation reference exists for the given key.

(name string)

Source from the content-addressed store, hash-verified

204
205// IsRelationReferenceExist checks if a relation reference exists for the given key.
206func (refs *References) IsRelationReferenceExist(name string) bool {
207 if _, ok := refs.relationReferences[name]; ok {
208 return true
209 }
210 return false
211}
212
213// IsAttributeReferenceExist checks if an attribute reference exists for the given key.
214func (refs *References) IsAttributeReferenceExist(name string) bool {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected