graphql: Add a method to list groups

This commit is contained in:
Valentin Tolmer
2021-09-16 09:26:31 +02:00
committed by nitnelave
parent e4d6b122c5
commit 480f48f820
11 changed files with 147 additions and 57 deletions
+9 -7
View File
@@ -11,7 +11,8 @@ type Mutation {
}
type Group {
id: String!
id: Int!
displayName: String!
"The groups to which this user belongs."
users: [User!]!
}
@@ -30,6 +31,13 @@ input RequestFilter {
"DateTime"
scalar DateTimeUtc
type Query {
apiVersion: String!
user(userId: String!): User!
users(filters: RequestFilter): [User!]!
groups: [Group!]!
}
"The details required to create a user."
input CreateUserInput {
id: String!
@@ -39,12 +47,6 @@ input CreateUserInput {
lastName: String
}
type Query {
apiVersion: String!
user(userId: String!): User!
users(filters: RequestFilter): [User!]!
}
type User {
id: String!
email: String!