MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / addTriplesToCluster

Function addTriplesToCluster

query/vector/vector_test.go:127–137  ·  view source on GitHub ↗
(triples string)

Source from the content-addressed store, hash-verified

125}
126
127func addTriplesToCluster(triples string) error {
128 txn := client.NewTxn()
129 ctx := context.Background()
130 defer func() { _ = txn.Discard(ctx) }()
131
132 _, err := txn.Mutate(ctx, &api.Mutation{
133 SetNquads: []byte(triples),
134 CommitNow: true,
135 })
136 return err
137}
138
139func deleteTriplesInCluster(triples string) {
140 txn := client.NewTxn()

Callers 12

updateVectorFunction · 0.70
TestVectorReindexFunction · 0.70
TestVectorDeleteFunction · 0.70
TestVectorUpdateFunction · 0.70
TestGetVectorFunction · 0.70

Calls 1

MutateMethod · 0.65

Tested by

no test coverage detected