mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
a08b9a556d
Split the command line into subcommands `run` and `export_graphql_schema`.
39 lines
660 B
GraphQL
39 lines
660 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
|
|
}
|
|
|
|
type Query {
|
|
apiVersion: String!
|
|
user(userId: String!): User!
|
|
users(filters: RequestFilter): [User!]!
|
|
}
|
|
|
|
type User {
|
|
id: String!
|
|
email: String!
|
|
"The groups to which this user belongs."
|
|
groups: [Group!]!
|
|
}
|
|
|
|
schema {
|
|
query: Query
|
|
}
|