mirror of
https://github.com/wassname/talk.git
synced 2026-07-27 11:28:12 +08:00
13 lines
291 B
JavaScript
13 lines
291 B
JavaScript
const typeDefs = require('./server/typeDefs');
|
|
|
|
module.exports = {
|
|
typeDefs,
|
|
resolvers: {
|
|
RootMutation: {
|
|
createRespect(_, {respect: {item_id, item_type}}, {mutators: {Action}}) {
|
|
return Action.create({item_id, item_type, action_type: 'RESPECT'});
|
|
}
|
|
}
|
|
}
|
|
};
|