Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
carmine.dimacsio committed Jul 18, 2020
1 parent 462b3e1 commit 315f861
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,18 @@ return collection
});
```

- [example/ex4-mongoose.js](example/ex4-mongoose.js)

```javascript
const uuid = MUUID.v4();

// save record and wait for it to commit
await new Data({ uuid }).save();

// retrieve the record
const result = await Data.findOne({ uuid });
```

## Notes

Currently supports [UUID v1 and v4](https://www.ietf.org/rfc/rfc4122.txt)
Expand Down

0 comments on commit 315f861

Please sign in to comment.