Repository URL to install this package:
|
Version:
1.4.5 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.onErrorLink = void 0;
var error_1 = require("@apollo/client/link/error");
exports.onErrorLink = (0, error_1.onError)(function (_a) {
var graphQLErrors = _a.graphQLErrors, networkError = _a.networkError;
if (graphQLErrors) {
graphQLErrors.forEach(function (_a) {
var message = _a.message;
console.error("[GraphQL error]: ".concat(message));
});
}
if (networkError) {
console.error("[Network error]: ".concat(networkError));
}
});