The findOne() method in detail.
conditions
The criteria used to filter documents. It specifies the query conditions in the form of a JSON object.
options (Object)
Offers an array of additional parameters for refining your query, such as ordering or limiting the number of results. You can utilize any Mongoose query options, allowing for extensive customization.
ignoreArchived (Boolean)
If set to true, the query will ignore archived documents. Defaults to false.