mirror of
https://github.com/unraid/api.git
synced 2026-01-22 16:39:58 -06:00
add users input and start query with slim=false
Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
@@ -43,6 +43,10 @@ module.exports = function ($injector, get, gql, graphql, graphqlDirective, merge
|
||||
stopArray: JSON @func(module: "array/update-array", data: { state: "stop" })
|
||||
}
|
||||
|
||||
input usersInput {
|
||||
slim: Boolean
|
||||
}
|
||||
|
||||
type Query {
|
||||
"""Current user"""
|
||||
me: User
|
||||
@@ -61,8 +65,8 @@ module.exports = function ($injector, get, gql, graphql, graphqlDirective, merge
|
||||
"""User account"""
|
||||
user(id: String!): User @func(module: "users/id/get-user")
|
||||
"""User accounts"""
|
||||
users: [User!]! @func(module: "get-users")
|
||||
"""Core plugins"""
|
||||
users(input: usersInput): [User!]! @func(module: "get-users", query: { slim: false })
|
||||
"""Node plugins"""
|
||||
plugins: [Plugin] @func(module: "get-plugins")
|
||||
pluginModule(plugin: String!, module: String!, params: JSON, result: String): JSON @func(result: "json")
|
||||
service(name: String!): Service @func(module: "services/name/get-service")
|
||||
|
||||
Reference in New Issue
Block a user