Bhupendra Singh
Sep 5, 2018 · 1 min read
Apollo Client does a lot of cool “behind-the-scenes” things that you expect should be standard but apparently are not. One example is “batching” queries. If I load a component that loads two different queries, the default is to send two different requests. However, Apollo Client has the option to “batch” these queries, which puts both of those queries into a single request and sends that up to the server, saving some HTTP requests.

Relay also supports batch queries, also while querying from graphiql we can batch query. So I guess its graphql which is supporting this(I can be totally wrong, need a bit more investigation on this).

    Bhupendra Singh

    Written by

    Developer