schema: make user fields non-nullable

They can always be empty. This simplifies mutation, since graphql_client
doesn't have an easy way to conditionally leave out fields (we could do
that with `@include`, but that's one bool per field in addition to the
field, a bit ugly).
This commit is contained in:
Valentin Tolmer
2021-09-01 09:59:01 +02:00
committed by nitnelave
parent 564c09d6ab
commit 0ac9e134de
8 changed files with 41 additions and 40 deletions

View File

@@ -45,9 +45,9 @@ type Query {
type User {
id: String!
email: String!
displayName: String
firstName: String
lastName: String
displayName: String!
firstName: String!
lastName: String!
creationDate: DateTimeUtc!
"The groups to which this user belongs."
groups: [Group!]!