-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
One use case that comes to mind is form validation, for example:
GraphQL Query
mutation {
createUser(email: "[email protected]", password: "Passw0rd") {
state: {
isValid,
errors* <-- here
},
user {
id,
email,
emailVerified
}
}
}GraphQL Response
{
data: {
state: {
isValid: false,
errors: {
'': [
'Failed to create a new user account.'
],
email: [
'User with this email address ([email protected]) already exists.'
]
},
},
user: null
}
}Azbesciak
Metadata
Metadata
Assignees
Labels
No labels