Feature: new unsecureGraphQLErrors
client option to enable unfiltered errors in GraphQL response
#127
Labels
👋 easy contribution
Good issue if wanting to contribute
is: feature request
New feature request
package: client
Client package
Milestone
Here the issue is that if you have a filter with only null (undefined) values for fields that are non-nullable, Prisma will crash as that is not a valid query.
It would be nice if Prisma AppSync silently "collapsed" the filter to prevent a mistake, or alternatively, gave the proper error. The "cause" bit in that screenshot is my own change to the library in order to demonstrate the issue.
This only happened while dynamically generating the query through front-end code, of course.
The text was updated successfully, but these errors were encountered: