mirror of https://github.com/requarks/wiki
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.
49 lines
700 B
49 lines
700 B
# ====================== #
|
|
# Wiki.js GraphQL Schema #
|
|
# ====================== #
|
|
|
|
# DIRECTIVES (deprecated)
|
|
# ----------
|
|
|
|
directive @auth(requires: [String]) on QUERY | FIELD_DEFINITION | ARGUMENT_DEFINITION
|
|
|
|
# TYPES
|
|
# -----
|
|
|
|
# Generic Key Value Pair
|
|
type KeyValuePair {
|
|
key: String
|
|
value: String
|
|
}
|
|
# General Key Value Pair Input
|
|
input KeyValuePairInput {
|
|
key: String!
|
|
value: String!
|
|
}
|
|
|
|
# Generic Mutation Response
|
|
type DefaultResponse {
|
|
operation: Operation
|
|
}
|
|
|
|
# Mutation Operation
|
|
type Operation {
|
|
succeeded: Boolean
|
|
slug: String
|
|
message: String
|
|
}
|
|
|
|
enum OrderByDirection {
|
|
asc
|
|
desc
|
|
}
|
|
|
|
# ROOT
|
|
# ----
|
|
|
|
# Query (Read)
|
|
type Query
|
|
|
|
# Mutations (Create, Update, Delete)
|
|
type Mutation
|