Create a model
create_modelCreates a new graph data model in the user's toro4n account from nodes, relationships, and notes, lays it out automatically, and returns a link that opens it. Give each node a ref of your choice and use it in relationships and notes. Each model describes a Neo4j schema, not instance data. It holds nodes such as (:Customer), (:Order), or (:Router:Egress), and the relationships between them, such as (:Customer)-[:PLACED]->(:Order). No two nodes can have the same set of labels. Every relationship has a direction. Follow Neo4j's naming conventions: PascalCase for node labels, UPPER_SNAKE_CASE for relationship types, and camelCase for property keys. toro4n converts new names to these conventions. Labels and property keys keep runs of capitals, as in USB and IPAddress. Spaces, underscores, and hyphens always stay as written. Editing a node or relationship leaves its existing names unchanged. Each property has a key and can also have a property type, an example value, and uniqueness and existence constraints. On a node, the first property's example is shown as its caption, so put the most descriptive property first. Leave examples out unless you have realistic values. Read get_modeling_guide first and pass its guideCode. Always share the link with the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The model's name. | |
| nodes | Yes | ||
| notes | No | ||
| guideCode | No | The guideCode that get_modeling_guide returns. Required: call get_modeling_guide and read the guide before you create or edit a model. | |
| relationships | No |