Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apollo-link-combine-includes

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-link-combine-includes

Apollo Link that performs merging of same-operation requests

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 10 Oct 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc