修改密码

请输入密码
请输入密码 请输入8-64长度密码 和 email 地址不相同 至少包括数字、大写字母、小写字母、半角符号中的 3 个
请输入密码
提交

修改昵称

当前昵称:
提交

申请证书

证书详情

Please complete this required field.

  • Ultipa Graph V4

Standalone

Please complete this required field.

Please complete this required field.

服务器的MAC地址

Please complete this required field.

Please complete this required field.

取消
申请
ID
产品
状态
核数
申请天数
审批时间
过期时间
MAC地址
申请理由
审核信息
关闭
基础信息
  • 用户昵称:
  • 手机号:
  • 公司名称:
  • 公司邮箱:
  • 地区:
  • 语言:
修改密码
申请证书

当前未申请证书.

申请证书
Certificate Issued at Valid until Serial No. File
Serial No. Valid until File

Not having one? Apply now! >>>

ProductName CreateTime ID Price File
ProductName CreateTime ID Price File

No Invoice

搜索

      找点

      概述

      找点子句find().nodes()从图集中获取符合过滤条件的点。

      语法

      子句别名: 数据类型为NODE;默认别名为nodes

      方法
      参数类型
      参数规范
      必须
      描述
      别名
      nodes() Filter / 用来获取指定点的过滤条件 N/A
      limit() Integer ≥-1 每个子查询返回的结果数,-1表示返回所有 N/A

      示例

      示例图集

      在一个空图集中,逐行运行以下语句,创建示例图集:

      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:"test@yahoo.cn"},{_id:"P002",_uuid:2,age:27,email:"test@ultipa.com"}])
      insert().into(@student).nodes([{_id:"S001",_uuid:3,age:27,email:"test@yeah.net"},{_id:"S002",_uuid:4,age:20,email:"test@w3.org"},{_id:"S003",_uuid:5,age:25,email:"test@gmail.com"}])
      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().nodes() as n
      return n{*}
      

      结果:

      _id _uuid Schema age
      email
      P001 1 professor 53 test@yahoo.cn
      P002 2 professor 27 test@ultipa.com
      _id _uuid Schema age
      email
      S001 3 student 27 test@yeah.net
      S002 4 student 20 test@w3.org
      S003 5 student 25 test@gmail.com

      过滤ID

      find().nodes({_id == "S001"}) as n
      return n{*}
      

      结果:

      _id _uuid Schema age
      email
      S001 3 student 27 test@yeah.net

      find().nodes({_id in ["P001", "P002"]}) as n
      return n{*}
      

      结果:

      _id _uuid Schema age
      email
      P001 1 professor 53 test@yahoo.cn
      P002 2 professor 27 test@ultipa.com

      过滤UUID

      find().nodes(1) as n
      return n{*}
      

      过滤条件 {_uuid == 1} 可简写为1

      结果:

      _id _uuid Schema age
      email
      P001 1 professor 53 test@yahoo.cn

      find().nodes([1,3]) as n
      return n{*}
      

      过滤条件 {_uuid in [1,3]}可简写为[1,3]

      结果:

      _id _uuid Schema age
      email
      P001 1 professor 53 test@yahoo.cn
      _id _uuid Schema age
      email
      S001 3 student 27 test@yeah.net

      过滤Schema

      find().nodes({@student}) as n
      return n{*}
      

      结果:

      _id _uuid Schema age
      email
      S001 3 student 27 test@yeah.net
      S002 4 student 20 test@w3.org
      S003 5 student 25 test@gmail.com

      find().nodes({@student || @professor}) as n
      return n{*}
      

      结果:

      _id _uuid Schema age
      email
      P001 1 professor 53 test@yahoo.cn
      P002 2 professor 27 test@ultipa.com
      _id _uuid Schema age
      email
      S001 3 student 27 test@yeah.net
      S002 4 student 20 test@w3.org
      S003 5 student 25 test@gmail.com

      过滤属性值

      find().nodes({age > 30}) as n
      return n{*}
      

      结果:

      _id _uuid Schema age
      email
      P001 1 professor 53 test@yahoo.cn

      过滤Schema和属性值

      find().nodes({@student.age > 25}) as n
      return n{*}
      

      结果:

      _id _uuid Schema age
      email
      S001 3 student 27 test@yeah.net

      使用默认子句别名

      find().nodes().limit(1)
      return nodes{*}
      

      结果:

      _id _uuid Schema age
      email
      P001 1 professor 53 test@yahoo.cn

      限制查询数量

      find().nodes().limit(3) as n
      return n{*}
      

      结果:

      _id _uuid Schema age
      email
      P001 1 professor 53 test@yahoo.cn
      P002 2 professor 27 test@ultipa.com
      _id _uuid Schema age
      email
      S001 3 student 27 test@yeah.net

      使用前缀OPTIONAL

      uncollect [53, 55, 57] as value
      optional find().nodes({age == value}) as n
      return n{*}
      

      结果:

      _id _uuid Schema age
      email
      P001 1 professor 53 test@yahoo.cn
      _id _uuid Schema
      null null null
      null null null

      如果没有使用前缀OPTIONAL,查询无结果时无返回值。

      请完成以下信息后可下载此书
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      *
      你的电话必须填写