apollo-datasource-http icon indicating copy to clipboard operation
apollo-datasource-http copied to clipboard

Optimized JSON HTTP Data Source for Apollo Server

Results 20 apollo-datasource-http issues
Sort by recently updated
recently updated
newest added

call onResponse while creating response in order to avoid mutations when implementing onResponse by extending the main class.

- Making sure global cache configuration is taken into consideration for all datasource methods - Making sure method-specific cache configuration is overriding global configuration, if present - Adding related tests...

## The Problem Concurrent requests usually happen: - When resolving multiple fields of the same object. - When one object appears in multiple locations of a query. Multiple requests occur...

This may be more of a feature request than a bug, as 'memoization' is admittedly currently 'working as designed'. However, my understanding of memoization is that multiple independent tasks should...

In some of the case we might not need or event want the `maxTtlIfError` to work, it would be nice if we could omit it in the configuration and thus...

Detailed paths Introduced through: › [email protected][email protected] Fix: Upgrade to [email protected] Overview [undici](https://www.npmjs.org/package/undici) is an An HTTP/1.1 client, written from scratch for Node.js Affected versions of this package are...

I'm trying to replace `apollo-datasource-rest` with your library, but I'm struggling with mocking of the external communication: ``` import { MockAgent, setGlobalDispatcher } from 'undici'; const mockAgent = new MockAgent();...

Hi, I had a question in regards to this library. In some cases I need to pass an authentication or query param that I need to fetch from another source....

By default, `apollo-datasource-rest` stringifies responses when setting cached values: https://github.com/StarpTech/apollo-datasource-http/blob/main/src/http-data-source.ts#L349. (Responses are not stringified when caching for memoization: https://github.com/StarpTech/apollo-datasource-http/blob/main/src/http-data-source.ts#L343.) The underlying `KeyValueCache` from Apollo Server allows non-string types for the...