Create Graph Relationship
create_graph_relationshipCreate a relationship between two nodes in a deployed graph project.
The rel_type must match a relationship key from the project schema. Use get_graph_data_schema to see available relationship types.
Example: rel_type: "authored" from_id: "alan-turing-001" to_id: "on-computable-numbers-001" data: {"year": 1936}
The from_id and to_id must be entity_ids of existing nodes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Relationship properties (optional) | |
| to_id | Yes | Target node entity_id | |
| from_id | Yes | Source node entity_id | |
| rel_type | Yes | Relationship key (e.g., 'authored', 'related_to') | |
| project_id | Yes | Project ID (UUID) | |
| environment | No | Environment: staging or production (default: staging) |