lldap/schema.graphql

80 lines
1.5 KiB
GraphQL
Raw Normal View History

input EqualityConstraint {
field: String!
value: String!
}
type Mutation {
2021-09-01 08:00:51 +00:00
createUser(user: CreateUserInput!): User!
updateUser(user: UpdateUserInput!): Success!
addUserToGroup(userId: String!, groupId: Int!): Success!
removeUserFromGroup(userId: String!, groupId: Int!): Success!
2021-09-24 07:14:18 +00:00
deleteUser(userId: String!): Success!
deleteGroup(groupId: Int!): Success!
}
type Group {
2021-09-16 07:26:31 +00:00
id: Int!
displayName: String!
"The groups to which this user belongs."
users: [User!]!
}
"""
A filter for requests, specifying a boolean expression based on field constraints. Only one of
the fields can be set at a time.
"""
input RequestFilter {
any: [RequestFilter!]
all: [RequestFilter!]
not: RequestFilter
eq: EqualityConstraint
}
2021-08-30 06:48:06 +00:00
"DateTime"
scalar DateTimeUtc
2021-09-16 07:26:31 +00:00
type Query {
apiVersion: String!
user(userId: String!): User!
users(filters: RequestFilter): [User!]!
groups: [Group!]!
}
"The details required to create a user."
2021-09-01 08:00:51 +00:00
input CreateUserInput {
id: String!
email: String!
displayName: String
firstName: String
lastName: String
}
type User {
id: String!
email: String!
displayName: String!
firstName: String!
lastName: String!
2021-08-30 06:48:06 +00:00
creationDate: DateTimeUtc!
"The groups to which this user belongs."
groups: [Group!]!
}
2021-09-01 08:00:51 +00:00
type Success {
ok: Boolean!
}
"The fields that can be updated for a user."
input UpdateUserInput {
id: String!
email: String
displayName: String
firstName: String
lastName: String
}
schema {
query: Query
mutation: Mutation
}