KeystoneJS GraphQL Errors in not compatible with specification #5913
pahaz
started this conversation in
Feature requests
Replies: 1 comment
-
Hi @pahaz, we know our errors aren’t ideal right now, reviewing our error structures is something that’s on our roadmap and that we’re hoping to address real soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Message list with a virtual field
sender
with custom validation.If we look at my query:
After I run the query I will get an error:
But if we look at the GraphQL http://spec.graphql.org/draft/#sec-Errors we can expect something like:
Here you can use
path
and display errors near the form field (related to #5881).I've also used
code
from Apollo errors: https://www.apollographql.com/docs/apollo-server/data/errors/#error-codesCurrently, it's a little hard to process the KeystoneJS errors because it used
apollo-errors
library which has not been updated for more than two years. And the Apollo Server already has good error processing support.Beta Was this translation helpful? Give feedback.
All reactions