Skip to content

Commit

Permalink
Merge 099cdc1 into 966c8f2
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjD90 authored Oct 11, 2023
2 parents 966c8f2 + 099cdc1 commit 90f5860
Show file tree
Hide file tree
Showing 70 changed files with 1,552 additions and 1,814 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,20 @@ Breaking changes (due to [mongodb driver](https://github.com/mongodb/node-mongod
- Sort param is no more an `object`, it is a proper type `Sort`
- `global.dbClient.isConnected` should now be replaced by `MongoUtils.isConnected`

Notable Changes
Other Notable Breaking Changes

- Name changed from `@neo9/n9-mongo-client` to `@neo9/n9-mongodb-client`
- `Cursor` are now `N9FindCursor` or `N9AggregationCursor`
- `MongoClient` is renamed to `N9MongoDBClient`
- `MongoUtils` functions are renamed to the UPPER_CASE equivalent :
- `oid``TO_OBJECT_ID`
- `oids``TO_OBJECT_IDS`
- `connect``CONNECT`
- And so on ...
- We removed all usage of global variable :
- `global.log` → A logger is required as parameter of a new `N9MongoDBClient`
- `global.db``MongoUtils.CONNECT` return it, it has to be pass to the new `N9MongoDBClient` settings
- `global.dlClient``MongoUtils.CONNECT` return it too now, as `mongodbClient` and is required to call `MongoUtils.DISCONNECT`

Upgrade main steps

Expand Down
Loading

0 comments on commit 90f5860

Please sign in to comment.