(key []byte)
| 620 | } |
| 621 | |
| 622 | func IsDropOpKey(key []byte) (bool, error) { |
| 623 | pk, err := Parse(key) |
| 624 | if err != nil { |
| 625 | return false, errors.Wrapf(err, "could not parse key %s", hex.Dump(key)) |
| 626 | } |
| 627 | |
| 628 | if pk.IsData() && ParseAttr(pk.Attr) == "dgraph.drop.op" { |
| 629 | return true, nil |
| 630 | } |
| 631 | return false, nil |
| 632 | } |
| 633 | |
| 634 | // These predicates appear for queries that have * as predicate in them. |
| 635 | var starAllPredicateMap = map[string]struct{}{ |
no test coverage detected