Socket
Socket
Sign inDemoInstall

apollo-link-combine-includes

Package Overview
Dependencies
10
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    apollo-link-combine-includes

Apollo Link that performs merging of same-operation requests


Version published
Maintainers
1
Install size
0.974 MB
Created

Readme

Source

Build Status coverage npm version sponsored by Taller

⚠️ Be careful

This project is a crazy experiment, did work with a quite complicated scenario, but is honestly not yet stressed enough to consider it not error prone, or even stable.

Purpose

An Apollo Link that combines multiple same-query requests using different include/skip directives into a single query.

Installation

npm install apollo-link-combine-includes --save

Usage

import { CombineIncludesLink } from 'apollo-link-combine-includes'

const link = new CombineIncludesLink()

Options

Batch Link takes an object with three options on it to customize the behavior of the link. The only required option is the batchHandler function

namevaluedefaultrequired
batchIntervalnumber10false
batchMaxnumber0false
canCombine(operation: Operation, defaultCanCombine: function) => BooleanOperation has a name and include directivesfalse

Context

The CombineIncludesLink does not use the context for anything

Keywords

FAQs

Last updated on 10 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc