couchbaselabs / couchbaselabs/node-ottoman
DocumentNotFoundError in findOne method
- Dominant language
- TypeScript
- Stars
- 295
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
We use `Ottoman` as an ORM in our project,
When we use the `findOne` method, and the item is not found on the server, it responds with a `DocumentNotFoundError` even though we have set the `enforceRefCheck` property to true . This property is intended to enforce reference checks, but it seems ignored.
We found in your source code that you just checked the length of response data, and you ignored the `enforceRefCheck` property,

My first question is, Why do you ignore `enforceRefCheck` ?
And, How can we ignore this error in the`2.4.0` version ?
We don't need to throw an error when a document is not found on the server.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.