MCPcopy
hub / github.com/dgraph-io/dgraph / GetCurrent

Method GetCurrent

worker/graphql_schema.go:70–75  ·  view source on GitHub ↗
(ns uint64)

Source from the content-addressed store, hash-verified

68}
69
70func (gs *GQLSchemaStore) GetCurrent(ns uint64) (*GqlSchema, bool) {
71 gs.mux.RLock()
72 defer gs.mux.RUnlock()
73 sch, ok := gs.schema[ns]
74 return sch, ok
75}
76
77func (gs *GQLSchemaStore) resetGQLSchema() {
78 gs.mux.Lock()

Callers 4

ResolveMethod · 0.80
newAdminResolverFunction · 0.80
resetSchemaMethod · 0.80
lazyLoadSchemaMethod · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected