comment.graphql 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # ===============================================
  2. # COMMENT
  3. # ===============================================
  4. extend type Query {
  5. comments: CommentQuery
  6. }
  7. extend type Mutation {
  8. comments: CommentMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type CommentQuery {
  14. providers: [CommentProvider] @auth(requires: ["manage:system"])
  15. }
  16. # -----------------------------------------------
  17. # MUTATIONS
  18. # -----------------------------------------------
  19. type CommentMutation {
  20. updateProviders(
  21. providers: [CommentProviderInput]
  22. ): DefaultResponse @auth(requires: ["manage:system"])
  23. rebuildIndex: DefaultResponse @auth(requires: ["manage:system"])
  24. }
  25. # -----------------------------------------------
  26. # TYPES
  27. # -----------------------------------------------
  28. type CommentProvider {
  29. isEnabled: Boolean!
  30. key: String!
  31. title: String!
  32. description: String
  33. logo: String
  34. website: String
  35. isAvailable: Boolean
  36. config: [KeyValuePair]
  37. }
  38. input CommentProviderInput {
  39. isEnabled: Boolean!
  40. key: String!
  41. config: [KeyValuePairInput]
  42. }