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.2
Search
    English
    v5.2

      Triggers

      v5.3

      Overview

      A trigger is a mechanism that automatically executes predefined operations in response to specific events on nodes or edges. Triggers can be set to run before or after events such as insertion, update, or deletion of data. They allow you to enforce business rules, maintain data integrity, or perform auxiliary operations without manual intervention, ensuring that logic tied to DML operations is executed consistently and automatically.

      Showing Triggers

      To show triggers in the current graph:

      SHOW TRIGGER
      

      To show node triggers in the current graph:

      SHOW NODE TRIGGER
      

      To show edge triggers in the current graph:

      SHOW EDGE TRIGGER
      

      Each trigger provides the following essential metadata:

      Field
      Description
      name The name of the trigger.
      schema The name of node or edge schema to which the trigger applies.
      description The comment given to the trigger.
      timing When the trigger takes effect — either before or after the event.
      event The type of event that activates the trigger, including insert, update, and delete.
      call The operation or logic executed by the trigger.

      Creating Trigger

      To create a trigger AutoUpperCase for Student nodes that converts the name property to uppercase before insertion:

      CREATE TRIGGER "AutoUpperCase" ON NODE "Student" 
      COMMENT "Converts name to uppercases before insertion" 
      BEFORE INSERT CALL "
        $entity CALL {
          LET entity.name = upper(entity.name)
        }
      "
      

      This trigger automatically converts the name property of a Student node to uppercase before insertion:

      INSERT (n:Student {name: "John Doe"}) RETURN n.name
      

      Result:

      n.name
      JOHN DOE

      To create a trigger AutoStaus for ENROLLED_IN edges, automatically setting the status property to "active" before insertion:

      CREATE TRIGGER "AutoStaus" ON EDGE "ENROLLED_IN"
      COMMENT "Sets status to true"
      BEFORE INSERT CALL "
        $entity CALL {
          LET entity.status = 'active'
        }
      "
      

      This trigger automatically sets the status property of an ENROLLED_IN edge to "active" before insertion:

      MATCH (s:Student {name: "JOHN DOE"}), (c:Course {name: "Science"})
      INSERT (s)-[e:ENROLLED_IN]->(c)
      RETURN e.status
      

      Result:

      e.status
      active

      Dropping Trigger

      To drop the node trigger AutoUpperCase:

      DROP NODE TRIGGER AutoUpperCase
      

      To drop the edge trigger AutoStaus:

      DROP EDGE TRIGGER AutoStaus
      

      Note: Dropping a node or edge schema will also remove any triggers associated with that schema.

      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