DropPredicate drops the predicate from the data in the db
(pred string)
| 743 | |
| 744 | // DropPredicate drops the predicate from the data in the db |
| 745 | func (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 |
| 752 | func (gc *GrpcClient) Mutate(mu *api.Mutation) (*api.Response, error) { |