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

Function GetWriteContext

schema/schema.go:48–50  ·  view source on GitHub ↗

GetWriteContext returns a context that sets the schema context for writing.

(ctx context.Context)

Source from the content-addressed store, hash-verified

46
47// GetWriteContext returns a context that sets the schema context for writing.
48func GetWriteContext(ctx context.Context) context.Context {
49 return context.WithValue(ctx, IsWrite, true)
50}
51
52func (s *state) init() {
53 s.predicate = make(map[string]*pb.SchemaUpdate)

Callers 4

proposeAndWaitMethod · 0.92
runMutationFunction · 0.92
runSchemaMutationFunction · 0.92
createSchemaFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected