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

Method IsEntityReferenceExist

pkg/dsl/ast/references.go:198–203  ·  view source on GitHub ↗

IsEntityReferenceExist checks if an entity reference exists for the given name.

(name string)

Source from the content-addressed store, hash-verified

196
197// IsEntityReferenceExist checks if an entity reference exists for the given name.
198func (refs *References) IsEntityReferenceExist(name string) bool {
199 if _, ok := refs.entityReferences[name]; ok {
200 return ok
201 }
202 return false
203}
204
205// IsRelationReferenceExist checks if a relation reference exists for the given key.
206func (refs *References) IsRelationReferenceExist(name string) bool {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected