(ctx context.Context, nodeUpdate graph.NodeUpdate)
| 881 | } |
| 882 | |
| 883 | func (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 | |
| 893 | func nodeSetToOrderedSlice(nodeSet graph.NodeSet) []*graph.Node { |
| 894 | nodes := nodeSet.Slice() |
nothing calls this directly
no test coverage detected