Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ NEO4J_ENCRYPTION=ENCRYPTION_OFF
// index.js
import Neode from 'neode';

const instance = new Neode.fromEnv();
const instance = Neode.fromEnv();
```

#### Additional Driver Config
Expand Down Expand Up @@ -477,7 +477,7 @@ Promise.all([
.then(([adam, joe]) => {
adam.relateTo(joe, 'knows', {since: 2010})
.then(res => {
console.log(rel.from().get('name'), ' has known ', rel.to().get('name'), 'since', rel.get('since')); // Adam has known Joe since 2010
console.log(res.startNode().get('name'), ' has known ', res.endNode().get('name'), 'since', res.get('since')); // Adam has known Joe since 2010
});
});
```
Expand Down
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ declare class Neode {
*
* @param {String} model
* @param {Object} properties
* @return {Node}
* @return {Promise}
*/
create<T>(model: string, properties: object): Neode.Node<T>;
create<T>(model: string, properties: object): Promise<Neode.Node<T>>;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good!!! Waiting for that 🥇


/**
* Merge a node based on the defined indexes
Expand Down