Skip to content

Commit

Permalink
[no ci] Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
slax57 committed May 29, 2024
1 parent 1c5b4f0 commit f5e2506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ server.respondWith(restServer2.getHandler());

## Configure Identifiers Generation

By default, FakeRest uses an auto incremented sequence for the items identifiers. If you'd rather uses UUID for instance but would like to avoid providing them when you insert new items, you can provide your own function:
By default, FakeRest uses an auto incremented sequence for the items identifiers. If you'd rather use UUIDs for instance but would like to avoid providing them when you insert new items, you can provide your own function:

```js
import FakeRest from 'fakerest';
Expand All @@ -442,7 +442,7 @@ import FakeRest from 'fakerest';
import uuid from 'uuid';

const restServer = new FakeRest.Server('http://my.custom.domain');
const authorsCollection = new FakeRest.Collection([], '_id', , () => uuid.v5());
const authorsCollection = new FakeRest.Collection([], '_id', () => uuid.v5());
```

## Development
Expand Down

0 comments on commit f5e2506

Please sign in to comment.