lldap/schema.graphql
2021-08-30 09:27:00 +02:00

45 lines
781 B
GraphQL

input EqualityConstraint {
field: String!
value: String!
}
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
}
"DateTime"
scalar DateTimeUtc
type Query {
apiVersion: String!
user(userId: String!): User!
users(filters: RequestFilter): [User!]!
}
type User {
id: String!
email: String!
displayName: String
firstName: String
lastName: String
creationDate: DateTimeUtc!
"The groups to which this user belongs."
groups: [Group!]!
}
schema {
query: Query
}