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

Function runTypeMutation

worker/mutation.go:331–335  ·  view source on GitHub ↗
(ctx context.Context, update *pb.TypeUpdate, ts uint64)

Source from the content-addressed store, hash-verified

329}
330
331func runTypeMutation(ctx context.Context, update *pb.TypeUpdate, ts uint64) error {
332 current := proto.Clone(update).(*pb.TypeUpdate)
333 schema.State().SetType(update.TypeName, current)
334 return updateType(update.TypeName, update, ts)
335}
336
337// We commit schema to disk in blocking way, should be ok because this happens
338// only during schema mutations or we see a new predicate.

Callers 1

applyMutationsMethod · 0.85

Calls 3

StateFunction · 0.92
updateTypeFunction · 0.85
SetTypeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…