model.findOne

Find a single document and call the model hook: afterFind

Arguments

Same argument signature as model.find.

Returns

A promise

Example

await user.findOne({ query: { name: "Martin Luther" }})
// {..}