menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Studio
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team

Using link to batch queries

May 18, 2020 at 9:52am

Using link to batch queries

May 18, 2020 at 9:52am (Edited 3 months ago)
I have a query to select data from the server by a single id. This query is run a lot. I'd like to wait for a couple of milliseconds, collect all the id's requested and then execute another batch query with fetches data from the server by multiple id's.
I'm aware of apollo-link-batch. But that link collects queries and batch processes them. I want to collect query specific data (the id's) and then execute another query instead of the others.
Is this doable with link?
No messages yet