common.graphql 840 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # ====================== #
  2. # Wiki.js GraphQL Schema #
  3. # ====================== #
  4. # DIRECTIVES
  5. # ----------
  6. directive @auth(requires: [String]) on QUERY | FIELD_DEFINITION | ARGUMENT_DEFINITION
  7. # TYPES
  8. # -----
  9. # Generic Key Value Pair
  10. type KeyValuePair {
  11. key: String!
  12. value: String!
  13. }
  14. # General Key Value Pair Input
  15. input KeyValuePairInput {
  16. key: String!
  17. value: String!
  18. }
  19. # Generic Range Value
  20. type Range {
  21. min: Int
  22. max: Int
  23. }
  24. input RangeInput {
  25. min: Int!
  26. max: Int!
  27. }
  28. # Generic Mutation Response
  29. type DefaultResponse {
  30. responseResult: ResponseStatus
  31. }
  32. # Mutation Status
  33. type ResponseStatus {
  34. succeeded: Boolean!
  35. errorCode: Int!
  36. slug: String!
  37. message: String
  38. }
  39. # ROOT
  40. # ----
  41. # Query (Read)
  42. type Query
  43. # Mutations (Create, Update, Delete)
  44. type Mutation
  45. # Subscriptions (Push, Real-time)
  46. type Subscription