Skip to content

DocumentNotFoundError in findOne method #783

@erfanetoon

Description

@erfanetoon

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,
image

My first question is, Why do you ignore enforceRefCheck ?
And, How can we ignore this error in the2.4.0 version ?

We don't need to throw an error when a document is not found on the server.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions