pub struct UpdateSubgraphParams {
pub subgraph: StaticGraph,
pub target_node_id: String,
pub ontology_property: String,
pub alias_suffix: Option<String>,
pub remove_orphaned: bool,
pub alias_prefix: Option<String>,
pub name_prefix: Option<String>,
}Expand description
Parameters for updating an existing subgraph/branch in a graph
This mutation finds nodes previously added from a branch (by alias matching) and updates them to match the current branch version:
- Update: Nodes that exist in both branch and graph (preserves IDs)
- Add: Nodes new in branch that don’t exist in graph
- Remove: Nodes in graph from old branch no longer in new branch (optional)
Fields§
§subgraph: StaticGraphThe new version of the subgraph/branch
target_node_id: StringTarget node ID where the branch is attached
ontology_property: StringOntology property for connecting edges (used for new nodes)
alias_suffix: Option<String>The suffix used when the branch was originally added (if any)
remove_orphaned: boolWhether to remove nodes that are no longer in the branch (default: false) WARNING: Setting this to true may orphan resource instance data
alias_prefix: Option<String>Optional prefix for aliases — used when matching branch aliases to existing prefixed aliases (e.g. “monument” matches branch “name” to existing “monument_name”) and when adding new nodes from the branch.
name_prefix: Option<String>Optional prefix for display names — applied to new nodes added from the branch (e.g. “Monument” → “Name Type” becomes “Monument Name Type”)
Trait Implementations§
Source§impl Clone for UpdateSubgraphParams
impl Clone for UpdateSubgraphParams
Source§fn clone(&self) -> UpdateSubgraphParams
fn clone(&self) -> UpdateSubgraphParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more