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

Function dropPredicate

query/vector/vector_test.go:49–56  ·  view source on GitHub ↗
(pred string)

Source from the content-addressed store, hash-verified

47}
48
49func dropPredicate(pred string) {
50 err := client.Alter(context.Background(), &api.Operation{
51 DropAttr: pred,
52 })
53 if err != nil {
54 panic(fmt.Sprintf("Could not drop predicate. Got error %v", err.Error()))
55 }
56}
57
58func processQuery(ctx context.Context, t *testing.T, query string) (string, error) {
59 txn := client.NewTxn()

Calls 2

AlterMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected