mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
5 years ago
|
# ===============================================
|
||
|
# COMMENT
|
||
|
# ===============================================
|
||
|
|
||
|
extend type Query {
|
||
|
comments: CommentQuery
|
||
|
}
|
||
|
|
||
|
extend type Mutation {
|
||
|
comments: CommentMutation
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# QUERIES
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type CommentQuery {
|
||
|
providers: [CommentProvider] @auth(requires: ["manage:system"])
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# MUTATIONS
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type CommentMutation {
|
||
|
updateProviders(
|
||
|
providers: [CommentProviderInput]
|
||
|
): DefaultResponse @auth(requires: ["manage:system"])
|
||
|
|
||
|
rebuildIndex: DefaultResponse @auth(requires: ["manage:system"])
|
||
|
}
|
||
|
|
||
|
# -----------------------------------------------
|
||
|
# TYPES
|
||
|
# -----------------------------------------------
|
||
|
|
||
|
type CommentProvider {
|
||
|
isEnabled: Boolean!
|
||
|
key: String!
|
||
|
title: String!
|
||
|
description: String
|
||
|
logo: String
|
||
|
website: String
|
||
|
isAvailable: Boolean
|
||
|
config: [KeyValuePair]
|
||
|
}
|
||
|
|
||
|
input CommentProviderInput {
|
||
|
isEnabled: Boolean!
|
||
|
key: String!
|
||
|
config: [KeyValuePairInput]
|
||
|
}
|