UNPKG

@envelop/persisted-operations

Version:

This plugin allow you to enforce execution of persisted (hashed) operation, using a custom store.

15 lines (14 loc) 319 B
export class AggregatedStore { constructor(stores) { this.stores = stores; } get(operationId) { for (const store of this.stores) { const item = store.get(operationId); if (item) { return item; } } return undefined; } }