12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- # ===============================================
- # 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]
- }
|