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(
|
|
|
|
searchEngines: [SearchEngineInput]
|
2018-10-14 21:38:39 +00:00
|
|
|
): 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
|
|
|
|
config: [KeyValuePair]
|
|
|
|
}
|
|
|
|
|
|
|
|
input SearchEngineInput {
|
|
|
|
isEnabled: Boolean!
|
|
|
|
key: String!
|
|
|
|
config: [KeyValuePairInput]
|
|
|
|
}
|