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 the2.4.0 version ?
We don't need to throw an error when a document is not found on the server.
We use
Ottomanas an ORM in our project,When we use the
findOnemethod, and the item is not found on the server, it responds with aDocumentNotFoundErroreven though we have set theenforceRefCheckproperty 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

enforceRefCheckproperty,My first question is, Why do you ignore
enforceRefCheck?And, How can we ignore this error in the
2.4.0version ?We don't need to throw an error when a document is not found on the server.