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 (such as @*&#).
Please enter the password.
Submit

Change Nickname

Current Nickname:
Submit

Certifications

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

Not having one? Apply now! >>>

Invoice

ProductName CreateTime ID Price File
ProductName CreateTime ID Price File
v4.0
Search
    中文EN
    v4.0

      array_union() | Array Union (V4.1)

       V4.1 

      Parameters, Value

      Array Union function calculates, deduplicates, and returns all the elements of two arrays as array, i.e. returns the union of the two arrays (repeated elements are NOT allowed within the arrays).

      If the two arrays are not homologous: when used in WITH, intersection() will first make a Cartesian Product Combination of all columns and its homologous columns before calculation; when used in RETURN, intersection() will trim all columns and their homologous columns before calculation.

      Syntax:

      • Format: array_union(<array1>, <array2>)
      • Parameters: see table below
      • Value: ARRAY
      Name Category Specification Description
      array1 ARRAY / The 1st array
      array2 ARRAY / The 2nd array

      Common Usage

      Example: Find all the neighbors of Card CA001 and CA002, deduplicate them and return as array

      khop().src({_id == "CA001"}).depth(1) as n1
      khop().src({_id == "CA002"}).depth(1) as n2
      with collect(n1) as a1, collect(n2) as a2
      return array_union(a1, a2)
      
      Please complete the following information to download this book
      *
      公司名称不能为空
      *
      公司邮箱必须填写
      *
      你的名字必须填写
      *
      你的电话必须填写
      *
      你的电话必须填写