Skip to content

Releases: themetalfleece/neogma

v1.10.3

03 Jun 14:29
Compare
Choose a tag to compare

v1.10.2

03 Jun 14:29
Compare
Choose a tag to compare

v1.10.1

08 Jan 12:07
Compare
Choose a tag to compare

Fixes

  • QueryRunner properly logs the parameters object

Dependencies

  • Upgrade dependencies

v1.10.0

06 Jan 18:20
Compare
Choose a tag to compare

Features

  • Add support for eq, gt, gte, lt, lte, ne operators. Docs.
  • Add minHops, maxHops to QueryBuilder relationship and Model.findRelationships. QueryRunner Docs | Model Docs.
  • Add Literal class, which is used for passing literal values to Where and Bind Param objects. Docs.

Fixes

  • Improve QueryRunner logging, by logging in a single message each time.

v.1.9.1

05 Jun 19:59
Compare
Choose a tag to compare
  • findRelationships method and static now return Instances for source, target
    • remove all generics but Alias

v1.9.0

04 Jun 14:05
Compare
Choose a tag to compare

Breaking changes

  • neo4j-driver is upgraded to version 4.3.0 (#23).
    It brings breaking changes, like importing from it.
    • i.e. instead of importing types from neo4j-driver/types, they should be imported from just neo4j-driver.
  • Model.getRawLabels() now only returns an array of strings.

Features

  • Added labels attribute to Instances (#21).
  • Added Model.buildFromRecord static, to easily create an Instance from a record, while setting its labels attribute.
    • This is the preferred method of creating an Instance for an existing Node, if a QueryResult is available.
    • This is now used internally in Neogma, ensuring that Instances will have their labels attribute set.
  • Added Model.findRelationships() static, instance.findRelationships() method to easily find the relationships by their Aliases (#18).
  • Added throwIfNotFound param to Model.findOne(), throwIfNoneFound param to Model.findMany() to instantly throw an Error if no nodes are found.

Fixes

  • Fix old parameter syntax in QueryRunner.create() (#22)

v1.8.4

26 Apr 14:05
Compare
Choose a tag to compare

Fixes

  • fix relateTo/updateRelationship relate to self (#14)
  • replace some any typings with Object
  • QueryRunner.createRelationship: don't add SET statement if relationship properties are empty (#13)

v1.8.3

26 Apr 14:03
Compare
Choose a tag to compare

Fixes

  • getSetParts: return empty statement if setParts is empty. This fixes errors associated with passing empty relationship parameter objects in various functions. (#13)

v1.8.2

17 Apr 16:58
Compare
Choose a tag to compare

Improvements

  • use Object as the default Statics/Methods type.
    • Until now, by not defining the Statics/Methods type, a Model/Instance had the any type. Now, it should have the correct type of their statics.methods.
  • relateTo: fix using aliases instead of properties, validate properties

v1.8.1

15 Apr 10:57
Compare
Choose a tag to compare

Improvements

  • beforeCreate runs before validating the instance.
  • RelationshipsI: make each property required.