修改密码

请输入密码
请输入密码 请输入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

搜索

      删除

      概述

      delete()子句删除图集中符合过滤条件的点、边。要特别注意,删除一个点时,与该点连接的所有边也会被删除。

      删除操作不可逆。

      语法

      // 删除点
      delete().nodes(<filter>).limit(<N>)
                     
      // 删除边
      delete().edges(<filter>).limit(<N>)
      
      • 符合nodes()edges()方法中指定条件的点或边才会被删除。过滤条件为空时,删除全部点、边。
      • limit()方法(可选)中限制要删除的数据量。
      • 不支持定义子句别名。

      示例图集

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

      create().node_schema("user").edge_schema("follow")
      create().node_property(@user, "name").node_property(@user, "age", int32).edge_property(@follow, "time", datetime)
      insert().into(@user).nodes([{_id:"U001", _uuid:1, name:"Jason", age:30}, {_id:"U002", _uuid:2, name:"Tim"}, {_id:"U003", _uuid:3, name:"Grace", age:25}, {_id:"U004", _uuid:4, name:"Ted", age:26}])
      insert().into(@follow).edges([{_uuid:1, _from_uuid:4, _to_uuid:1, time:"2021-9-10"}, {_uuid:2, _from_uuid:3, _to_uuid:2, time:"2020-3-12"}, {_uuid:3, _from_uuid:4, _to_uuid:2, time:"2023-7-30"}])
      

      示例

      删除点

      delete().nodes({name == "Grace"})
      

      本例删除了_id为U003的点,以及与之相连的_uuid为2的边。

      删除边

      delete().edges({@follow})
      

      本例删除所有@follow边。

      限制删除数量

      delete().nodes({@user.age > 26}).limit(2)
      

      本例删除age属性大于26的@user点,且仅删除最先找到的两个点。

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