v1.16.0
Minor Changes
-
#333
2593296
Thanks @mjfwebb! - Adds support for genai functiongenai.vector.encode()
and proceduregenai.vector.encodeBatch()
-
#328
628ec62
Thanks @mjfwebb! - Adds support for vector index functionsdb.index.vector.queryNodes()
anddb.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 inPattern
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();