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

Method Alter

edgraph/server.go:355–357  ·  view source on GitHub ↗

Alter handles requests to change the schema or remove parts or all of the data. It enforces the admin-IP-whitelist and ACL authorization checks.

(ctx context.Context, op *api.Operation)

Source from the content-addressed store, hash-verified

353// Alter handles requests to change the schema or remove parts or all of the
354// data. It enforces the admin-IP-whitelist and ACL authorization checks.
355func (s *Server) Alter(ctx context.Context, op *api.Operation) (*api.Payload, error) {
356 return s.alter(ctx, op, NeedAuthorize)
357}
358
359// AlterNoAuth is Alter without the admin-IP-whitelist and ACL authorization
360// checks. It mirrors QueryNoAuth and is intended only for trusted in-process

Callers 15

writeCanaryFunction · 0.80
setupFunction · 0.80
processSchemaFileMethod · 0.80
TestMainFunction · 0.80
TestEmptyRequestFunction · 0.80
alterHandlerFunction · 0.80
TestTxnRead1Function · 0.80
TestTxnRead3Function · 0.80
TestConflictFunction · 0.80
TestIgnoreIndexConflictFunction · 0.80
TestReadIndexKeySameTxnFunction · 0.80
TestEmailUpsertFunction · 0.80

Calls 1

alterMethod · 0.95

Tested by 15

writeCanaryFunction · 0.64
setupFunction · 0.64
TestMainFunction · 0.64
TestEmptyRequestFunction · 0.64
TestTxnRead1Function · 0.64
TestTxnRead3Function · 0.64
TestConflictFunction · 0.64
TestIgnoreIndexConflictFunction · 0.64
TestReadIndexKeySameTxnFunction · 0.64
TestEmailUpsertFunction · 0.64
TestFriendListFunction · 0.64
TestNameSetFunction · 0.64