Skip to content

v1.16.0

Compare
Choose a tag to compare
@neo4j-team-graphql neo4j-team-graphql released this 03 May 07:41
· 276 commits to main since this release
5491ead

Minor Changes

  • #333 2593296 Thanks @mjfwebb! - Adds support for genai function genai.vector.encode() and procedure genai.vector.encodeBatch()

  • #328 628ec62 Thanks @mjfwebb! - Adds support for vector index functions db.index.vector.queryNodes() and db.index.vector.queryRelationships()

  • #310 13fd317 Thanks @angrykoala! - Add support for arbitrary variables in Patterns instead of only Node and Relationship:

Patch Changes

  • #310 13fd317 Thanks @angrykoala! - The following methods in Pattern class and chains are deprecated:

    • withoutLabels
    • withoutVariable
    • withProperties
    • getVariables
    • withoutType
    • withDirection
    • withLength

    Instead, these properties should be passed as an object, for example:

    const a = new Cypher.Variable();
    const rel = new Cypher.Variable();
    const b = new Cypher.Variable();
    
    const pattern = new Cypher.Pattern(a, { labels: ["Movie"] })
      .related(rel, { type: "ACTED_IN" })
      .to(b);
  • #310 98a8b2f Thanks @angrykoala! - Deprecate using Node directly on Match, Create and Merge clauses. Use a Pattern instead

  • #310 7574aee Thanks @angrykoala! - Deprecate setting up labels and types in Node and Relationship. The following examples are now deprecated:

    new Cypher.Node({ labels: ["Movie"] });
    new Cypher.Relationship({ type: "ACTED_IN" });

    Instead, Nodes and Relationships should be created without parameters. Labels and types should be set in a Pattern:

    const n = new Cypher.Node();
    const r = new Cypher.Relationship();
    
    const pattern = new Cypher.Pattern(n, { labels: ["Movie"] })
      .related(r, { type: "ACTED_IN" })
      .to();