Skip to content

apollo.TypeAlias.ApolloResponseBody

github-actions[bot] edited this page Nov 30, 2026 · 6 revisions

Type Alias: ApolloResponseBody

type ApolloResponseBody = 
  | {
  kind: "single";
  singleResult: FormattedExecutionResult;
}
  | {
  kind: "incremental";
};

Defined in: packages/graphql-casl/src/apollo.ts:43

The response body Apollo Server hands willSendResponse: the slice of its GraphQLResponseBody this plugin reads. A 'single' body is the whole result; an 'incremental' one (@defer / @stream) is a stream of payloads, which the plugin leaves alone.

API Reference

Clone this wiki locally