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

Function InitialSchema

schema/schema.go:758–760  ·  view source on GitHub ↗

InitialSchema returns the schema updates to insert at the beginning of Dgraph's execution. It looks at the worker options to determine which attributes to insert.

(namespace uint64)

Source from the content-addressed store, hash-verified

756// Dgraph's execution. It looks at the worker options to determine which
757// attributes to insert.
758func InitialSchema(namespace uint64) []*pb.SchemaUpdate {
759 return initialSchemaInternal(namespace, false)
760}
761
762// CompleteInitialSchema returns all the schema updates regardless of the worker
763// options. This is useful in situations where the worker options are not known

Callers 4

applyInitialSchemaMethod · 0.92
applyMutationsMethod · 0.92
ApplyInitialSchemaFunction · 0.92

Calls 1

initialSchemaInternalFunction · 0.85

Tested by

no test coverage detected