我正在使用 React-Relay。我正在做一个返回错误的突变,这完全没问题,但最后我在控制台中遇到了与 react-relay 库相关的错误。
Uncaught Error: No data returned for operation `CreateUserMutation`, got error(s):
A unique constraint would be violated on User. Details: Field name = email
See the error `source` property for more information.
at createError (RelayError.js:44)
at Object.create (RelayError.js:29)
at normalizePayload (normalizePayload.js:31)
at Object.next (RelayModernEnvironment.js:245)
at Object.next (RelayObservable.js:223)
at Object.next (RelayObservable.js:561)
at Object.next (RelayObservable.js:561)
at RelayObservable.js:492
at _subscribe (RelayObservable.js:609)
at RelayObservable.subscribe (RelayObservable.js:315)
at Object.next (RelayObservable.js:376)
at Object.next (RelayObservable.js:561)
at RelayObservable.js:484
知道我们如何捕捉/避免它吗?