From aaf102fdd3467d65257480341438d6fb1a86060a Mon Sep 17 00:00:00 2001 From: Lucas Jeub Date: Mon, 26 Aug 2024 10:30:25 +0200 Subject: [PATCH] fix merge issue --- raphtory-graphql/src/model/graph/mutable_graph.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/raphtory-graphql/src/model/graph/mutable_graph.rs b/raphtory-graphql/src/model/graph/mutable_graph.rs index 0006c7ca0..c1fe98e1b 100644 --- a/raphtory-graphql/src/model/graph/mutable_graph.rs +++ b/raphtory-graphql/src/model/graph/mutable_graph.rs @@ -108,7 +108,7 @@ impl GqlMutableGraph { let node_view = self .graph .node(name) - .ok_or(GraphError::NodeNameError(node.name))?; + .ok_or(GraphError::NodeMissingError(GID::Str(node.name)))?; node_view.add_constant_properties(as_properties(constant_props))?; } } @@ -158,10 +158,13 @@ impl GqlMutableGraph { } let constant_props = edge.constant_properties.unwrap_or(vec![]); if !constant_props.is_empty() { - let edge_view = self.graph.edge(src, dst).ok_or(GraphError::EdgeNameError { - src: edge.src, - dst: edge.dst, - })?; + let edge_view = self + .graph + .edge(src, dst) + .ok_or(GraphError::EdgeMissingError { + src: GID::Str(edge.src), + dst: GID::Str(edge.dst), + })?; edge_view.add_constant_properties(as_properties(constant_props), layer)?; } }