Change Password

Please enter the password.
Please enter the password. Between 8-64 characters. Not identical to your email address. Contain at least 3 of: uppercase, lowercase, numbers, and special characters.
Please enter the password.
Submit

Change Nickname

Current Nickname:
Submit

Apply New License

License Detail

Please complete this required field.

  • Ultipa Blaze (v4)
  • Ultipa Powerhouse (v5)

Standalone

learn more about the four main severs in the architecture of Ultipa Powerhouse (v5) , click

here

Please complete this required field.

Please complete this required field.

Please complete this required field.

Please complete this required field.

Leave it blank if an HDC service is not required.

Please complete this required field.

Leave it blank if an HDC service is not required.

Please complete this required field.

Please complete this required field.

Mac addresses of all servers, separated by line break or comma.

Please complete this required field.

Please complete this required field.

Cancel
Apply
ID
Product
Status
Cores
Maximum Shard Services
Maximum Total Cores for Shard Service
Maximum HDC Services
Maximum Total Cores for HDC Service
Applied Validity Period(days)
Effective Date
Expired Date
Mac Address
Reason for Application
Review Comment
Close
Profile
  • Full Name:
  • Phone:
  • Company:
  • Company Email:
Change Password
Apply

You have no license application record.

Apply
Certificate Issued at Valid until Serial No. File
Serial No. Valid until File

Not having one? Apply now! >>>

Product Created On ID Amount (USD) Invoice
Product Created On ID Amount (USD) Invoice

No Invoice

v5.3
Search
    English
    v5.3

      INSERT

      Overview

      The INSERT statement allows you to add new nodes and edges into the graph using node and edge patterns.

      Different from graph pattern matching, INSERT supports variable declarations, label/schema expressions, and property specifications in node and edge patterns; while WHERE clauses are not allowed. Only basic concatenations of node and edge patterns are permitted, and the indication of edge direction is necessary.

      Ultipa supports both typed graphs and open graphs. Their data insertion syntax is similar, but with important differences in requirements.

      Typed Graph

      For a typed graph, any node or edge inserted must conform to its defined graph type. Nodes or edges with undefined schemas or properties cannot be added.

      You must assign exactly one schema to a node or edge in a typed graph. Any given property value will be checked against the defined value type; any property not explicitly provided defaults to null.

      To create a typed graph:

      CREATE GRAPH g1 { 
        NODE User ({name STRING, gender STRING}),
        NODE Club (),
        EDGE Follows ()-[{since DATE}]->(),
        EDGE Joins ()-[{fee UINT32}]->()
      }
      

      Learn more about typed graphs →

      Open Graph

      For an open graph, you can directly insert nodes and edges, and the labels and properties are created on the fly.

      You may assign zero, one, or multiple labels to a node or edge in an open graph. Each node or edge has its own set of properties.

      To create an open graph:

      CREATE GRAPH g2 ANY
      

      Learn more about open graphs →

      Inserting Nodes

      Nodes are inserted using node patterns.

      To insert a single User node:

      INSERT (:User {name: "claire", gender: "female"})
      

      To insert multiple nodes and return them:

      INSERT (n1:User {_id: "U2", name: "Quasar92"}),
             (n2:Club {_id: "C1"}),
             (n3:Club)
      RETURN n1, n2, n3
      

      In an open graph, you may assign multiple labels to a node:

      INSERT (n:Person&Employee {name: "Bob"})
      RETURN n
      

      Inserting Edges

      Edges are inserted using edge patterns, which connect nodes on both ends and include a direction to indicate source and destination.

      To insert two User nodes and a Follows edge between them:

      INSERT (:User {name: 'rowlock'})-[:Follows {since: date('2024-01-05')}]->(:User {name: 'Brainy', gender: 'male'})
      

      To insert an edge between existing nodes, first retrieve the nodes using MATCH:

      MATCH (n1:User {name: 'claire'}), (n2:Club {_id: 'C1'})
      INSERT (n1)-[e:Joins {fee: 1200}]->(n2)
      RETURN e
      

      To insert a Joins edge from an existing User node to a new Club node:

      MATCH (user:User {name: 'Quasar92'})
      INSERT (user)-[:Joins]->(:Club {_id: "C2"})
      

      Inserting Graph

      To insert the nodes and edges shown above, consider it as two paths intersecting at the Club node:

      INSERT (:User {name: 'waveBliss'})-[:Joins]->(c:Club {_id: 'C3'}),
             (:User {name: 'bella'})-[:Joins]->(c)<-[:Joins]-(:User {name: 'Roose'})
      

      Alternatively, you can insert each node and edge individually:

      INSERT (waveBliss:User {name: 'waveBliss'}),
             (bella:User {name: 'bella'}),
             (Roose:User {name: 'Roose'}),
             (C3:Club {_id: 'C3'}),
             (waveBliss)-[:Joins]->(C3),
             (bella)-[:Joins]->(C3),
             (Roose)-[:Joins]->(C3)
      

      Property Value Examples

      Ultipa supports a wide range of property types. You can view the complete list at here.

      Below are examples of property values for different types. These examples assume a typed graph, where properties are explicitly defined with specific types. In open graphs, property value types are open too, but the examples can still serve as a useful reference for assigning values.

      Numeric Properties

      Numeric property value types include INT (INT32), UINT (UINT32), INT64, UINT64, FLOAT, DOUBLE, and DECIMAL(<precision>, <scale>).

      // age is UINT32, weight is DECIMAL(10,2)
      INSERT (:Person {age: 34, weight: 60.3})
      

      Textual Properties

      Textual property value types include STRING and TEXT.

      // name is STRING
      INSERT (:Person {name: "John Doe"})
      

      Temporal Instant Properties

      Temporal instant property value types include DATE, LOCAL DATETIME, LOCAL TIME, ZONED DATETIME, ZONED TIME, TIMESTAMP, and DATETIME.

      // register is ZONED DATETIME, lastLogin is timestamp
      INSERT (:Person {
          register: zoned_datetime("2025-01-01 12:20:02+0200"), 
          lastLogin: 1762338059
      })
      

      Temporal Duration Properties

      Temporal duration property value types include DURATION(YEAR TO MONTH) and DURATION(DAY TO SECOND).

      // ativeDuration is DURATION(DAY TO SECOND)
      INSERT (:Person {ativeDuration: "P526DT23H14M8S"})
      

      Boolean Properties

      Boolean property value type is BOOL.

      // isBlocked is BOOL
      INSERT (:Person {isBlocked: FALSE})
      

      Spatial Properties

      Spatial property value types include POINT and POINT3D.

      // location is POINT, PoI is POINT3D
      INSERT (:Person {
        location: POINT({latitude: 22.3, longitude: 125.6}),
        PoI: POINT3D({x: 10, y: 3.4, z: 6.2})
      })
      

      Record Properties

      Record property value types is RECORD.

      // bodyInfo is RECORD
      INSERT (:Person {
        bodyInfo: {height: 175, weight: 68, bmi: 22.2, hairColor: "brown", bloodTyle: "O"}
      })
      

      Binary Properties

      Binary property value types is BLOB.

      // avatar is BLOB
      INSERT (:Person {
          avatar: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAB2AAAAdgB+lymcgAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA5rSURBVHicvZtpcFzVlcd/573Xi1pq7ZJXiBfwIoPDsBljMJJNDbZJ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s6JQunCr5+0eQVY154azu+vNIshmxHqZaC0t3jdUx7Qs6JA9cT7X0MzVII0c647nzan87bUj47bvzd2jimr2D83iPQhniXS6h8WzqdM5qMHj+0wrV7XsXz0grIxPQh/iBiBcEwwY60eXteKdCWj4MpM0eBAoyqrzTLpPmTyCb5q/oplrVKgkVpf2GW8Wpq24H5nmf/SR27JDVFQXwhjEAeGKPIye49rs174trVXITTG5D8sk4q5kWkePpk0izgHjmuNuD41khhYVtGr2Uzlqqa2vbZ854dv3IIMX8eRjA8oXWBaSCKcjf5JfeKpCpTGRs5XbM4J5quknj0CfXcIiNYhPgzM5M5Q9iMyx0SLt2TPYkcoapCx5Fv4g99F0hZjjrhED4G/XcJldXnTmqCoKomkY7LQW8FLmOibrAG4QFvAL8kVPK6iExI5cXElXEnQaMds3C8WmAVwhKyVWxgI/wJj42YRr3kFX8+gWwCfyMBJEPb24sIcCHKmYhWgcwlEWUWMvAtgnaCdAHHQBtR2Qu6m7hskdLStD/PzQb/BzXqR+4x42zOAAAAAElFTkSuQmCC"
      })
      

      List Properties

      List property value type is LIST<subType>.

      // tags is LIST<STRING>
      INSERT (:Person {tags: ["IT", "happy", "geek"]})
      
      Please complete the following information to download this book
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      Privacy Policy
      Please agree to continue.

      Copyright © 2019-2025 Ultipa Inc. – All Rights Reserved   |  Security   |  Legal Notices   |  Web Use Notices