2019-01-12 18:33:30 -05:00
|
|
|
# ====================== #
|
|
|
|
# Wiki.js GraphQL Schema #
|
|
|
|
# ====================== #
|
2017-08-06 21:05:10 -04:00
|
|
|
|
2018-10-08 00:17:31 -04:00
|
|
|
# DIRECTIVES
|
2019-01-12 18:33:30 -05:00
|
|
|
# ----------
|
2018-10-08 00:17:31 -04:00
|
|
|
|
|
|
|
directive @auth(requires: [String]) on QUERY | FIELD_DEFINITION | ARGUMENT_DEFINITION
|
|
|
|
|
2017-08-06 21:05:10 -04:00
|
|
|
# TYPES
|
2019-01-12 18:33:30 -05:00
|
|
|
# -----
|
2017-08-06 21:05:10 -04:00
|
|
|
|
2019-01-12 18:33:30 -05:00
|
|
|
# Generic Key Value Pair
|
2018-03-05 20:53:24 -05:00
|
|
|
type KeyValuePair {
|
|
|
|
key: String!
|
|
|
|
value: String!
|
|
|
|
}
|
2019-01-12 18:33:30 -05:00
|
|
|
# General Key Value Pair Input
|
2018-03-05 20:53:24 -05:00
|
|
|
input KeyValuePairInput {
|
|
|
|
key: String!
|
|
|
|
value: String!
|
|
|
|
}
|
|
|
|
|
2019-01-12 18:33:30 -05:00
|
|
|
# Generic Mutation Response
|
2018-03-05 20:53:24 -05:00
|
|
|
type DefaultResponse {
|
2018-03-24 22:35:47 -04:00
|
|
|
responseResult: ResponseStatus
|
2018-03-05 20:53:24 -05:00
|
|
|
}
|
|
|
|
|
2019-01-12 18:33:30 -05:00
|
|
|
# Mutation Status
|
2018-03-05 20:53:24 -05:00
|
|
|
type ResponseStatus {
|
|
|
|
succeeded: Boolean!
|
2018-03-24 22:35:47 -04:00
|
|
|
errorCode: Int!
|
2018-03-05 20:53:24 -05:00
|
|
|
slug: String!
|
|
|
|
message: String
|
|
|
|
}
|
|
|
|
|
2019-01-12 18:33:30 -05:00
|
|
|
# ROOT
|
|
|
|
# ----
|
2018-01-09 20:41:53 -05:00
|
|
|
|
2017-08-08 22:36:29 -04:00
|
|
|
# Query (Read)
|
2019-01-12 18:33:30 -05:00
|
|
|
type Query
|
2017-08-08 22:36:29 -04:00
|
|
|
|
|
|
|
# Mutations (Create, Update, Delete)
|
2019-01-12 18:33:30 -05:00
|
|
|
type Mutation
|
2018-09-30 14:20:26 -04:00
|
|
|
|
2019-01-12 18:33:30 -05:00
|
|
|
# Subscriptions (Push, Real-time)
|
2018-09-30 14:20:26 -04:00
|
|
|
type Subscription
|