wikijs-fork/server/graph/schemas/common.graphql

48 lines
734 B
GraphQL
Raw Permalink Normal View History

2019-01-12 23:33:30 +00:00
# ====================== #
# Wiki.js GraphQL Schema #
# ====================== #
2017-08-07 01:05:10 +00:00
# DIRECTIVES
2019-01-12 23:33:30 +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
type KeyValuePair {
key: String!
value: String!
}
2019-01-12 23:33:30 +00:00
# General Key Value Pair Input
input KeyValuePairInput {
key: String!
value: String!
}
2019-01-12 23:33:30 +00:00
# Generic Mutation Response
type DefaultResponse {
responseResult: ResponseStatus
}
2019-01-12 23:33:30 +00:00
# Mutation Status
type ResponseStatus {
succeeded: Boolean!
errorCode: Int!
slug: String!
message: String
}
2019-01-12 23:33:30 +00:00
# ROOT
# ----
2018-01-10 01:41:53 +00:00
# Query (Read)
2019-01-12 23:33:30 +00:00
type Query
# Mutations (Create, Update, Delete)
2019-01-12 23:33:30 +00:00
type Mutation
2019-01-12 23:33:30 +00:00
# Subscriptions (Push, Real-time)
type Subscription