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

Function createPost

src/service/post.service.ts:9–11  ·  view source on GitHub ↗
(input: DocumentDefinition<PostDocument>)

Source from the content-addressed store, hash-verified

7import Post, { PostDocument } from "../model/post.model";
8
9export function createPost(input: DocumentDefinition<PostDocument>) {
10 return Post.create(input);
11}
12
13export function findPost(
14 query: FilterQuery<PostDocument>,

Callers 1

createPostHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected