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 Graph V4

Standalone

Please complete this required field.

Please complete this required field.

The MAC address of the server you want to deploy.

Please complete this required field.

Please complete this required field.

Cancel
Apply
ID
Product
Status
Cores
Applied Validity Period(days)
Effective Date
Excpired Date
Mac Address
Apply Comment
Review Comment
Close
Profile
  • Full Name:
  • Phone:
  • Company:
  • Company Email:
  • Country:
  • Language:
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

Search
    English

      Find Edges

      Overview

      The clause find().edges() retrieves edges from the graphset that meet specified conditions.

      Syntax

      Clause alias: EDGE type; default alias is edges

      Method
      Param Type
      Param Spec
      Required
      Description
      Alias
      edges() Filter / Yes The conditions of edges to be retrieved N/A
      limit() Integer ≥-1 No Number of results to return for each subquery, -1 signifies returning all N/A

      Examples

      Example Graph

      Run these UQLs row by row in an empty graphset to create this graph:

      create().node_schema("professor").node_schema("student").edge_schema("mentor").edge_schema("assist")
      create().node_property(@*, "age", int32).node_property(@*, "email", string).edge_property(@*, "year", int32)
      insert().into(@professor).nodes([{_id:"P001",_uuid:1,age:53,email:"[email protected]"},{_id:"P002",_uuid:2,age:27,email:"[email protected]"}])
      insert().into(@student).nodes([{_id:"S001",_uuid:3,age:27,email:"[email protected]"},{_id:"S002",_uuid:4,age:20,email:"[email protected]"},{_id:"S003",_uuid:5,age:25,email:"[email protected]"}])
      insert().into(@mentor).edges([{_uuid:1, _from_uuid:2, _to_uuid:3, year:2020},{_uuid:2, _from_uuid:1, _to_uuid:3, year:2021},{_uuid:3, _from_uuid:1, _to_uuid:4, year:2021},{_uuid:4, _from_uuid:1, _to_uuid:5, year:2022}])
      insert().into(@assist).edges([{_uuid:5, _from_uuid:3, _to_uuid:2, year:2020},{_uuid:6, _from_uuid:4, _to_uuid:1, year:2022}])
      

      Find All Edges

      find().edges() as e
      return e{*}
      

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      1 P002 S001 2 3 mentor 2020
      2 P001 S001 1 3 mentor 2021
      3 P001 S002 1 4 mentor 2021
      4 P001 S003 1 5 mentor 2022
      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      5 S001 P002 3 2 assist 2020
      6 S002 P001 4 1 assist 2022

      Find Edges by UUID

      find().edges(1) as e
      return e{*}
      

      The filter {_uuid == 1} can be simplified to 1.

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      1 P002 S001 2 3 mentor 2020

      find().edges([1,3]) as e
      return e{*}
      

      The filter {_uuid in [1,3]} can be simplified to [1,3].

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      1 P002 S001 2 3 mentor 2020
      3 P001 S002 1 4 mentor 2021

      Find Edges by Start Nodes

      find().edges({_from == "P001"}) as e
      return e{*}
      

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      2 P001 S001 1 3 mentor 2021
      3 P001 S002 1 4 mentor 2021
      4 P001 S003 1 5 mentor 2022

      Find Edges by End Nodes

      find().edges({_to == "P001"}) as e
      return e{*}
      

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      6 S002 P001 4 1 assist 2022

      Find Edges by Schema

      find().edges({@assist}) as e
      return e{*}
      

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      5 S001 P002 3 2 assist 2020
      6 S002 P001 4 1 assist 2022

      find().edges({@assist || @mentor}) as e
      return e{*}
      

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      1 P002 S001 2 3 mentor 2020
      2 P001 S001 1 3 mentor 2021
      3 P001 S002 1 4 mentor 2021
      4 P001 S003 1 5 mentor 2022
      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      5 S001 P002 3 2 assist 2020
      6 S002 P001 4 1 assist 2022

      Find Edges by Property

      find().edges({year == 2020}) as e
      return e{*}
      

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      1 P002 S001 2 3 mentor 2020
      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      5 S001 P002 3 2 assist 2020

      Find Edges by Schema and Property

      find().edges({@assist.year == 2020}) as e
      return e{*}
      

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      5 S001 P002 3 2 assist 2020

      Use Default Clause Alias

      find().edges().limit(3)
      return edges{*}
      

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      1 P002 S001 2 3 mentor 2020
      2 P001 S001 1 3 mentor 2021
      3 P001 S002 1 4 mentor 2021

      Use limit()

      find().edges().limit(3) as e
      return e{*}
      

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      1 P002 S001 2 3 mentor 2020
      2 P001 S001 1 3 mentor 2021
      3 P001 S002 1 4 mentor 2021

      Use OPTIONAL

      uncollect [2022, 2023, 2024] as value
      optional find().edges({year == value}) as e
      return e{*}
      

      Result:

      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      4 P001 S003 1 5 mentor 2022
      _uuid _from _to
      _from_uuid
      _to_uuid Schema year
      6 S002 P001 4 1 assist 2022
      _uuid _from _to
      _from_uuid
      _to_uuid Schema
      null null null null null null
      null null null null null null

      If the prefix OPTIONAL is not used, null results will not be returned.

      Please complete the following information to download this book
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写