You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases we already have custom errors that have extra properties to describe what happened in details, but graphql-js only copies message and stack, so we loose them.
One option would be to keep reference to the original error. Or copy properties from original error - that would be more convenient option.
The text was updated successfully, but these errors were encountered:
Great suggestion. I decided to keep a reference to the original error to avoid colliding properties, to allow for computed properties, and also to allow for instanceof when necessary.
In some cases we already have custom errors that have extra properties to describe what happened in details, but graphql-js only copies message and stack, so we loose them.
One option would be to keep reference to the original error. Or copy properties from original error - that would be more convenient option.
The text was updated successfully, but these errors were encountered: