MCPcopy Index your code
hub / github.com/TomDoesTech/REST-API-Tutorial / findPost

Function findPost

src/service/post.service.ts:13–18  ·  view source on GitHub ↗
(
  query: FilterQuery<PostDocument>,
  options: QueryOptions = { lean: true }
)

Source from the content-addressed store, hash-verified

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

Callers 3

updatePostHandlerFunction · 0.90
getPostHandlerFunction · 0.90
deletePostHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected