PHPackages                             bigfork/silverstripe-graphql-batching - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bigfork/silverstripe-graphql-batching

ActiveSilverstripe-vendormodule

bigfork/silverstripe-graphql-batching
=====================================

Adds support for HTTP-based batching of GraphQL operations in Silverstripe

1.1.0(1y ago)41.7k↓100%1BSD-3-ClausePHPPHP ^7.4 || ^8.0

Since Feb 11Pushed 1y ago4 watchersCompare

[ Source](https://github.com/bigfork/silverstripe-graphql-batching)[ Packagist](https://packagist.org/packages/bigfork/silverstripe-graphql-batching)[ RSS](/packages/bigfork-silverstripe-graphql-batching/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Silverstripe GraphQL batching
=============================

[](#silverstripe-graphql-batching)

Adds basic support for using Apollo’s [`BatchHTTPLink`](https://www.apollographql.com/docs/react/api/link/apollo-link-batch-http/)to send multiple GraphQL operations in a single HTTP request.

Note that this approach does not run operations in parallel - they are executed in order, one at a time. Because of this, and the fact that all operations have to be complete before any can be returned, there’s no guarantee this will improve the performance of your app - do your own research and testing!

Install
-------

[](#install)

`composer require bigfork/silverstripe-graphql-batching`

Usage
-----

[](#usage)

Register a new Injector service for your schema (in the example below, we’re using the schema name `default`) and then point your GraphQL route to it:

```
SilverStripe\Core\Injector\Injector:
  Bigfork\SilverstripeGraphQLBatching\Controller.default:
    class: Bigfork\SilverstripeGraphQLBatching\Controller
    constructor:
      schema: default
      handler: '%$SilverStripe\GraphQL\QueryHandler\QueryHandlerInterface.default'
      batchMax: 10
SilverStripe\Control\Director:
  rules:
    'graphql': '%$Bigfork\SilverstripeGraphQLBatching\Controller.default'
```

**Please note:** `batchMax` is the maximum number of operations that can be included in a single HTTP request. It should match the `batchMax` value you set when creating the `BatchHttpLink` in your client-side code (default 10) and should be kept as low as possible. The higher this value is, the more likely it is to become a DDoS attack vector: if you allow someone to run dozens of GraphQL operations in a single HTTP request, it becomes trivial to overload your server.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance42

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1031 days

Total

2

Last Release

516d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/203294386?v=4)[-&gt; lozcalver](/maintainers/kinglozzer)[@kinglozzer](https://github.com/kinglozzer)

---

Top Contributors

[![lozcalver](https://avatars.githubusercontent.com/u/1655548?v=4)](https://github.com/lozcalver "lozcalver (2 commits)")

### Embed Badge

![Health badge](/badges/bigfork-silverstripe-graphql-batching/health.svg)

```
[![Health](https://phpackages.com/badges/bigfork-silverstripe-graphql-batching/health.svg)](https://phpackages.com/packages/bigfork-silverstripe-graphql-batching)
```

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5163.4M1.3k](/packages/silverstripe-cms)[silverstripe/graphql

GraphQL server for SilverStripe models and other data

512.4M21](/packages/silverstripe-graphql)[silverstripe/admin

SilverStripe admin interface

262.6M325](/packages/silverstripe-admin)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)[silverleague/ideannotator

Generate PHP DocBlock annotations for DataObject and DataExtension databasefields and relation methods

4768.0k43](/packages/silverleague-ideannotator)[silverstripe/superglue

102.2k](/packages/silverstripe-superglue)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
