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