MCPcopy Create free account
hub / github.com/EQuimper/nodejs-api-boilerplate / createPost

Function createPost

src/models/post.model.js:61–66  ·  view source on GitHub ↗

* Create a post * * @public * @param {Object} args - Object contains title and text * @param {String} authorId - the author id * @returns {Post} Post Object - new post create

(args, authorId)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected