(operation: Operation, error: any)
| 25 | } |
| 26 | |
| 27 | function enhanceError(operation: Operation, error: any) { |
| 28 | const { operationName, query, variables } = operation |
| 29 | |
| 30 | error.__RedwoodEnhancedError = { |
| 31 | operationName, |
| 32 | operationKind: query?.kind.toString(), |
| 33 | variables, |
| 34 | query: query && print(query), |
| 35 | } |
| 36 | |
| 37 | return error |
| 38 | } |
| 39 | |
| 40 | export function createUpdateDataLink() { |
| 41 | return new ApolloLink((operation, forward) => { |