mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 04:49:11 +08:00
17 lines
288 B
JavaScript
17 lines
288 B
JavaScript
const { merge } = require('lodash');
|
|
|
|
module.exports = {
|
|
RootMutation: {
|
|
createComment: {
|
|
async pre(_, { input }, _context, _info) {
|
|
input.metadata = merge(
|
|
{},
|
|
{
|
|
htmlBody: input.htmlBody,
|
|
}
|
|
);
|
|
},
|
|
},
|
|
},
|
|
};
|