You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
734 B

  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 Mutation Response
  20. type DefaultResponse {
  21. responseResult: ResponseStatus
  22. }
  23. # Mutation Status
  24. type ResponseStatus {
  25. succeeded: Boolean!
  26. errorCode: Int!
  27. slug: String!
  28. message: String
  29. }
  30. # ROOT
  31. # ----
  32. # Query (Read)
  33. type Query
  34. # Mutations (Create, Update, Delete)
  35. type Mutation
  36. # Subscriptions (Push, Real-time)
  37. type Subscription