MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / graph_delete_edge_impl

Method graph_delete_edge_impl

nodedb-client/src/native/client/graph.rs:78–96  ·  view source on GitHub ↗
(
        &self,
        collection: &str,
        edge_id: &EdgeId,
    )

Source from the content-addressed store, hash-verified

76 }
77
78 pub(super) async fn graph_delete_edge_impl(
79 &self,
80 collection: &str,
81 edge_id: &EdgeId,
82 ) -> NodeDbResult<()> {
83 let mut conn = self.pool.acquire().await?;
84 conn.send(
85 OpCode::EdgeDelete,
86 TextFields {
87 collection: Some(collection.to_string()),
88 from_node: Some(edge_id.src.as_str().to_string()),
89 to_node: Some(edge_id.dst.as_str().to_string()),
90 edge_type: Some(edge_id.label.clone()),
91 ..Default::default()
92 },
93 )
94 .await?;
95 Ok(())
96 }
97
98 pub(super) async fn graph_stats_impl(
99 &self,

Callers 1

graph_delete_edgeMethod · 0.45

Calls 5

to_stringMethod · 0.80
acquireMethod · 0.45
sendMethod · 0.45
as_strMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected