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

58 lines
1.2 KiB
GraphQL
Raw Normal View History

2018-12-24 06:03:10 +00:00
# ===============================================
# SITE
# ===============================================
extend type Query {
site: SiteQuery
}
extend type Mutation {
site: SiteMutation
}
# -----------------------------------------------
# QUERIES
# -----------------------------------------------
type SiteQuery {
config: SiteConfig @auth(requires: ["manage:system"])
}
# -----------------------------------------------
# MUTATIONS
# -----------------------------------------------
type SiteMutation {
updateConfig(
host: String!
title: String!
description: String!
robots: [String]!
ga: String!
company: String!
hasLogo: Boolean!
logoIsSquare: Boolean!
featurePageRatings: Boolean!
featurePageComments: Boolean!
featurePersonalWikis: Boolean!
): DefaultResponse @auth(requires: ["manage:system"])
}
# -----------------------------------------------
# TYPES
# -----------------------------------------------
type SiteConfig {
host: String!
title: String!
description: String!
robots: [String]!
ga: String!
company: String!
hasLogo: Boolean!
logoIsSquare: Boolean!
featurePageRatings: Boolean!
featurePageComments: Boolean!
featurePersonalWikis: Boolean!
}