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

Method DropPredicate

dgraphapi/cluster.go:745–749  ·  view source on GitHub ↗

DropPredicate drops the predicate from the data in the db

(pred string)

Source from the content-addressed store, hash-verified

743
744// DropPredicate drops the predicate from the data in the db
745func (gc *GrpcClient) DropPredicate(pred string) error {
746 ctx, cancel := context.WithTimeout(context.Background(), requestTimeout)
747 defer cancel()
748 return gc.Alter(ctx, &api.Operation{DropAttr: pred})
749}
750
751// Mutate performs a given mutation in a txn
752func (gc *GrpcClient) Mutate(mu *api.Mutation) (*api.Response, error) {

Callers 1

TestDropPredicateFunction · 0.80

Calls 1

AlterMethod · 0.80

Tested by 1

TestDropPredicateFunction · 0.64