MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / IsList

Method IsList

schema/schema.go:484–491  ·  view source on GitHub ↗

IsList returns whether the predicate is of list type.

(pred string)

Source from the content-addressed store, hash-verified

482
483// IsList returns whether the predicate is of list type.
484func (s *state) IsList(pred string) bool {
485 s.RLock()
486 defer s.RUnlock()
487 if schema, ok := s.predicate[pred]; ok {
488 return schema.List
489 }
490 return false
491}
492
493func (s *state) HasUpsert(pred string) bool {
494 s.RLock()

Callers 13

processSortFunction · 0.80
handleValuePostingsMethod · 0.80
handleUidPostingsMethod · 0.80
helpProcessTaskMethod · 0.80
handleRegexFunctionMethod · 0.80
handleCompareFunctionMethod · 0.80
handleMatchFunctionMethod · 0.80
getValsForUIDMethod · 0.80
checkSchemaFunction · 0.80
addMutationHelperMethod · 0.80
fingerprintEdgeFunction · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected