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

Function isDropOperation

edgraph/server.go:2439–2441  ·  view source on GitHub ↗

isDropOperation reports whether op is any form of drop (all, data, attr, or type) rather than a schema change.

(op *api.Operation)

Source from the content-addressed store, hash-verified

2437// isDropOperation reports whether op is any form of drop (all, data, attr, or
2438// type) rather than a schema change.
2439func isDropOperation(op *api.Operation) bool {
2440 return op.DropAll || op.DropOp != api.Operation_NONE || len(op.DropAttr) > 0
2441}
2442
2443func verifyUniqueWithinMutation(qc *queryContext) error {
2444 if len(qc.uniqueVars) == 0 {

Callers 1

AlterNoAuthMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected