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

56 lines
1.1 KiB
GraphQL
Raw Permalink Normal View History

2018-09-02 02:37:20 +00:00
# ===============================================
# SEARCH
# ===============================================
extend type Query {
search: SearchQuery
}
extend type Mutation {
search: SearchMutation
}
# -----------------------------------------------
# QUERIES
# -----------------------------------------------
type SearchQuery {
searchEngines(
filter: String
orderBy: String
2018-10-14 21:38:39 +00:00
): [SearchEngine] @auth(requires: ["manage:system"])
2018-09-02 02:37:20 +00:00
}
# -----------------------------------------------
# MUTATIONS
# -----------------------------------------------
type SearchMutation {
updateSearchEngines(
engines: [SearchEngineInput]
2018-10-14 21:38:39 +00:00
): DefaultResponse @auth(requires: ["manage:system"])
rebuildIndex: DefaultResponse @auth(requires: ["manage:system"])
2018-09-02 02:37:20 +00:00
}
# -----------------------------------------------
# TYPES
# -----------------------------------------------
type SearchEngine {
isEnabled: Boolean!
key: String!
title: String!
description: String
logo: String
website: String
isAvailable: Boolean
2018-09-02 02:37:20 +00:00
config: [KeyValuePair]
}
input SearchEngineInput {
isEnabled: Boolean!
key: String!
config: [KeyValuePairInput]
}