Skip to content

Commit

Permalink
fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ljeub-pometry committed Aug 26, 2024
1 parent 2750513 commit aaf102f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions raphtory-graphql/src/model/graph/mutable_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))?;
}
}
Expand Down Expand Up @@ -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)?;
}
}
Expand Down

0 comments on commit aaf102f

Please sign in to comment.