diff --git a/graph/typeDefs.graphql b/graph/typeDefs.graphql index 02eb02705..093caba02 100644 --- a/graph/typeDefs.graphql +++ b/graph/typeDefs.graphql @@ -593,10 +593,8 @@ input CreateLikeInput { item_type: ACTION_ITEM_TYPE! } - - enum TAG_TYPE { - OFF_TOPIC + STAFF } input CreateCommentInput { diff --git a/plugins/coral-plugin-offtopic/index.js b/plugins/coral-plugin-offtopic/index.js index f4d625303..51ad1c24e 100644 --- a/plugins/coral-plugin-offtopic/index.js +++ b/plugins/coral-plugin-offtopic/index.js @@ -1,3 +1,6 @@ -module.exports = { +const {readFileSync} = require('fs'); +const path = require('path'); +module.exports = { + typeDefs: readFileSync(path.join(__dirname, 'server/typeDefs.graphql'), 'utf8') }; diff --git a/plugins/coral-plugin-offtopic/server/typeDefs.graphql b/plugins/coral-plugin-offtopic/server/typeDefs.graphql new file mode 100644 index 000000000..48ba577cf --- /dev/null +++ b/plugins/coral-plugin-offtopic/server/typeDefs.graphql @@ -0,0 +1,4 @@ +## Extending TAG_TYPE by adding OFF_TOPIC Tag +enum TAG_TYPE { + OFF_TOPIC +}