2021-08-26 19:46:00 +00:00
|
|
|
input EqualityConstraint {
|
|
|
|
field: String!
|
|
|
|
value: String!
|
|
|
|
}
|
|
|
|
|
2021-08-30 07:28:27 +00:00
|
|
|
type Mutation {
|
2021-09-01 08:00:51 +00:00
|
|
|
createUser(user: CreateUserInput!): User!
|
|
|
|
updateUser(user: UpdateUserInput!): Success!
|
2021-08-30 07:28:27 +00:00
|
|
|
}
|
|
|
|
|
2021-08-26 19:46:00 +00:00
|
|
|
type Group {
|
|
|
|
id: 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-08-30 07:28:27 +00:00
|
|
|
"The details required to create a user."
|
2021-09-01 08:00:51 +00:00
|
|
|
input CreateUserInput {
|
2021-08-30 07:28:27 +00:00
|
|
|
id: String!
|
|
|
|
email: String!
|
|
|
|
displayName: String
|
|
|
|
firstName: String
|
|
|
|
lastName: String
|
|
|
|
}
|
|
|
|
|
2021-08-26 19:46:00 +00:00
|
|
|
type Query {
|
|
|
|
apiVersion: String!
|
|
|
|
user(userId: String!): User!
|
|
|
|
users(filters: RequestFilter): [User!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
type User {
|
|
|
|
id: String!
|
|
|
|
email: String!
|
2021-09-01 07:59:01 +00:00
|
|
|
displayName: String!
|
|
|
|
firstName: String!
|
|
|
|
lastName: String!
|
2021-08-30 06:48:06 +00:00
|
|
|
creationDate: DateTimeUtc!
|
2021-08-26 19:46:00 +00:00
|
|
|
"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
|
|
|
|
}
|
|
|
|
|
2021-08-26 19:46:00 +00:00
|
|
|
schema {
|
|
|
|
query: Query
|
2021-08-30 07:28:27 +00:00
|
|
|
mutation: Mutation
|
2021-08-26 19:46:00 +00:00
|
|
|
}
|