MCPcopy
hub / github.com/SpecterOps/BloodHound / BatchNodeUpdate

Method BatchNodeUpdate

cmd/api/src/queries/graph.go:883–891  ·  view source on GitHub ↗
(ctx context.Context, nodeUpdate graph.NodeUpdate)

Source from the content-addressed store, hash-verified

881}
882
883func (s *GraphQuery) BatchNodeUpdate(ctx context.Context, nodeUpdate graph.NodeUpdate) error {
884 return s.Graph.WriteTransaction(ctx, func(tx graph.Transaction) error {
885 updateNodeFunc := func(batch graph.Batch) error {
886 return batch.UpdateNodeBy(nodeUpdate)
887 }
888
889 return s.Graph.BatchOperation(ctx, updateNodeFunc)
890 })
891}
892
893func nodeSetToOrderedSlice(nodeSet graph.NodeSet) []*graph.Node {
894 nodes := nodeSet.Slice()

Callers

nothing calls this directly

Calls 3

UpdateNodeByMethod · 0.65
WriteTransactionMethod · 0.45
BatchOperationMethod · 0.45

Tested by

no test coverage detected