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

Function CompleteInitialTypes

schema/schema.go:649–651  ·  view source on GitHub ↗

CompleteInitialTypes returns all the type updates regardless of the worker options. This is useful in situations where the worker options are not known in advance or it is required to consider all initial pre-defined types. An example of such situation is while allowing type updates to go through du

(namespace uint64)

Source from the content-addressed store, hash-verified

647// alter if they are same as existing pre-defined types. This is useful for
648// live loading a previously exported schema.
649func CompleteInitialTypes(namespace uint64) []*pb.TypeUpdate {
650 return initialTypesInternal(namespace, true)
651}
652
653// NOTE: whenever defining a new type here, please also add it in x/keys.go: preDefinedTypeMap
654func initialTypesInternal(namespace uint64, all bool) []*pb.TypeUpdate {

Callers 2

IsPreDefTypeChangedFunction · 0.85

Calls 1

initialTypesInternalFunction · 0.85

Tested by

no test coverage detected