Files
talk/plugins/talk-plugin-rte/server/hooks.js
T
2018-02-21 16:59:02 -03:00

17 lines
288 B
JavaScript

const { merge } = require('lodash');
module.exports = {
RootMutation: {
createComment: {
async pre(_, { input }, _context, _info) {
input.metadata = merge(
{},
{
htmlBody: input.htmlBody,
}
);
},
},
},
};