(
query: FilterQuery<PostDocument>,
options: QueryOptions = { lean: true }
)
| 11 | } |
| 12 | |
| 13 | export function findPost( |
| 14 | query: FilterQuery<PostDocument>, |
| 15 | options: QueryOptions = { lean: true } |
| 16 | ) { |
| 17 | return Post.findOne(query, {}, options); |
| 18 | } |
| 19 | |
| 20 | export function findAndUpdate( |
| 21 | query: FilterQuery<PostDocument>, |
no outgoing calls
no test coverage detected