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" }})
// {..}
model.findOne
Find a single document and call the model hook: afterFind
Same argument signature as model.find
.
A promise
await user.findOne({ query: { name: "Martin Luther" }})
// {..}