How to use the apollo-link-http-common.throwServerError function in apollo-link-http-common

To help you get started, we’ve selected a few apollo-link-http-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apollographql / apollo-link / packages / apollo-link-error / src / __tests__ / index.ts View on Github external
return new Observable(obs => {
        const response = { status: 500, ok: false } as Response;
        throwServerError(response, 'ServerError', 'app is crashing');
      });
    });

apollo-link-http-common

Http utilities for Apollo Link shared across all links using http

MIT
Latest version published 5 years ago

Package Health Score

64 / 100
Full package analysis