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