mirror of
https://github.com/wassname/talk.git
synced 2026-08-08 11:28:12 +08:00
Extending typeDefs with Off-Topic Plugin
This commit is contained in:
@@ -593,10 +593,8 @@ input CreateLikeInput {
|
||||
item_type: ACTION_ITEM_TYPE!
|
||||
}
|
||||
|
||||
|
||||
|
||||
enum TAG_TYPE {
|
||||
OFF_TOPIC
|
||||
STAFF
|
||||
}
|
||||
|
||||
input CreateCommentInput {
|
||||
|
||||
@@ -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')
|
||||
};
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
## Extending TAG_TYPE by adding OFF_TOPIC Tag
|
||||
enum TAG_TYPE {
|
||||
OFF_TOPIC
|
||||
}
|
||||
Reference in New Issue
Block a user