site.graphql 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # ===============================================
  2. # SITE
  3. # ===============================================
  4. extend type Query {
  5. site: SiteQuery
  6. }
  7. extend type Mutation {
  8. site: SiteMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type SiteQuery {
  14. config: SiteConfig @auth(requires: ["manage:system"])
  15. }
  16. # -----------------------------------------------
  17. # MUTATIONS
  18. # -----------------------------------------------
  19. type SiteMutation {
  20. updateConfig(
  21. host: String!
  22. title: String!
  23. description: String!
  24. robots: [String]!
  25. ga: String!
  26. company: String!
  27. hasLogo: Boolean!
  28. logoIsSquare: Boolean!
  29. featurePageRatings: Boolean!
  30. featurePageComments: Boolean!
  31. featurePersonalWikis: Boolean!
  32. ): DefaultResponse @auth(requires: ["manage:system"])
  33. }
  34. # -----------------------------------------------
  35. # TYPES
  36. # -----------------------------------------------
  37. type SiteConfig {
  38. host: String!
  39. title: String!
  40. description: String!
  41. robots: [String]!
  42. ga: String!
  43. company: String!
  44. hasLogo: Boolean!
  45. logoIsSquare: Boolean!
  46. featurePageRatings: Boolean!
  47. featurePageComments: Boolean!
  48. featurePersonalWikis: Boolean!
  49. }