AppSync returns errors with a JSON response body that always contains both data (with a query/mutation key having a null value) in addition to the errors property. The above line results in the promise incorrectly being resolved with the data, instead of being rejected with the error.
appsync-client/src/httpsRequestPromisified.ts
Line 25 in 88f500c
AppSync returns errors with a JSON response body that always contains both
data(with a query/mutation key having a null value) in addition to theerrorsproperty. The above line results in the promise incorrectly being resolved with the data, instead of being rejected with the error.