-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Field is nullable by default, whereas InputField is not.
This is inconsistent and also it doesn't make much sense- at least in the API I am building. We have quite a few GQL calls like this:
mutation {
user(id: ${id}) {
patch(input: {organisation_role: "role"}) {
organisation_role
}
}
}
now if I wanted to edit another field on my user, for example email:
mutation {
user(id: ${id}) {
patch(input: {email: "some@email.com"}) {
email
}
}
}
so what I end up doing is marking all of my input fields on User entity as isNullable anyway. I've got the alias I've made, but it would make it easier if typegql had input fields as nullable by default.
What do you think @pie6k ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels