Releases: themetalfleece/neogma
Releases · themetalfleece/neogma
v1.10.3
Fixes
v1.10.2
##Improvements
v1.10.1
Fixes
QueryRunner
properly logs theparameters
object
Dependencies
- Upgrade dependencies
v1.10.0
Features
- Add support for
eq
,gt
,gte
,lt
,lte
,ne
operators. Docs. - Add
minHops
,maxHops
toQueryBuilder
relationship andModel.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
findRelationships
method and static now return Instances forsource
,target
- remove all generics but
Alias
- remove all generics but
v1.9.0
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 justneo4j-driver
.
- i.e. instead of importing types from
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 itslabels
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.
- This is the preferred method of creating an Instance for an existing Node, if a
- Added
Model.findRelationships()
static,instance.findRelationships()
method to easily find the relationships by their Aliases (#18). - Added
throwIfNotFound
param toModel.findOne()
,throwIfNoneFound
param toModel.findMany()
to instantly throw an Error if no nodes are found.
Fixes
- Fix old parameter syntax in
QueryRunner.create()
(#22)
v1.8.4
v1.8.3
v1.8.2
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.
- Until now, by not defining the Statics/Methods type, a Model/Instance had the
- relateTo: fix using aliases instead of properties, validate properties
v1.8.1
Improvements
beforeCreate
runs before validating the instance.RelationshipsI
: make each property required.