common.graphql 700 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # ====================== #
  2. # Wiki.js GraphQL Schema #
  3. # ====================== #
  4. # DIRECTIVES (deprecated)
  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 Mutation Response
  20. type DefaultResponse {
  21. operation: Operation
  22. }
  23. # Mutation Operation
  24. type Operation {
  25. succeeded: Boolean
  26. slug: String
  27. message: String
  28. }
  29. enum OrderByDirection {
  30. asc
  31. desc
  32. }
  33. # ROOT
  34. # ----
  35. # Query (Read)
  36. type Query
  37. # Mutations (Create, Update, Delete)
  38. type Mutation