# Server

**URL:** https://community.apollographql.com/c/server/32.md

[Latest](https://community.apollographql.com/latest.md) · [Categories](https://community.apollographql.com/categories.md) · [Tags](https://community.apollographql.com/tags.md)

---

## [About the Server category](https://community.apollographql.com/t/about-the-server-category/8570)

<div class="topic-metadata">

**Author:** [@Justin\_Gonzalez](https://community.apollographql.com/u/Justin_Gonzalez)\
**Replies:** 0\
**Last updated:** [February 19, 2025, 3:52pm UTC](https://community.apollographql.com/t/about-the-server-category/8570 "2025-02-19T15:52:23Z")

</div>

If you’re building, deploying, or optimizing APIs with Apollo Server, you’re in the right place! Use this space to discuss best practices, troubleshoot issues, and share insights with the community. Why use this categor…

---

## [Embedded Sandbox is broken everywhere, including Apollo's own docs — sandbox.embed.apollographql.com](https://community.apollographql.com/t/embedded-sandbox-is-broken-everywhere-including-apollos-own-docs-sandbox-embed-apollographql-com/9977)

<div class="topic-metadata">

**Author:** [@deebugger](https://community.apollographql.com/u/deebugger)\
**Replies:** 3\
**Last updated:** [August 5, 2026, 10:21am UTC](https://community.apollographql.com/t/embedded-sandbox-is-broken-everywhere-including-apollos-own-docs-sandbox-embed-apollographql-com/9977 "2026-08-05T10:21:54Z")

</div>

Hello! The embedded Sandbox iframe fails to render for any browser with a cold cache. It boots, then a lazy route chunk 404s, the React ErrorBoundary catches it, and you’re left with a blank panel. This reproduces on y…

---

## [Is Apollo Server v5 incompatible with RESTDataSource?](https://community.apollographql.com/t/is-apollo-server-v5-incompatible-with-restdatasource/9939)

<div class="topic-metadata">

**Author:** [@ASJ98](https://community.apollographql.com/u/ASJ98)\
**Replies:** 2\
**Last updated:** [July 7, 2026, 8:12am UTC](https://community.apollographql.com/t/is-apollo-server-v5-incompatible-with-restdatasource/9939 "2026-07-07T08:12:27Z")

</div>

The @apolloapolloapolloapollo/server v5 documentation says to use RESTDataSource@apolloapollofrom @apollo/datasource-rest for interacting with REST APIs to provide caching. This is not working for me locally and it seem…

---

## [Subscriptions over HTTP multipart setup with Apollo Server + expressMiddleware](https://community.apollographql.com/t/subscriptions-over-http-multipart-setup-with-apollo-server-expressmiddleware/8647)

<div class="topic-metadata">

**Author:** [@yorkeJohn](https://community.apollographql.com/u/yorkeJohn)\
**Replies:** 2\
**Last updated:** [April 8, 2026, 12:50pm UTC](https://community.apollographql.com/t/subscriptions-over-http-multipart-setup-with-apollo-server-expressmiddleware/8647 "2026-04-08T12:50:36Z")

</div>

I can’t seem to find any documentation regarding the setup for Apollo Server to support subscriptions over HTTP multipart. The RFC specifies Apollo Server as an implementation, and the client docs talk about it too, but …

---

## [Apollo Server v4 Error Handling](https://community.apollographql.com/t/apollo-server-v4-error-handling/7742)

<div class="topic-metadata">

**Author:** [@defect](https://community.apollographql.com/u/defect)\
**Replies:** 1\
**Last updated:** [February 18, 2026, 10:58pm UTC](https://community.apollographql.com/t/apollo-server-v4-error-handling/7742 "2026-02-18T22:58:49Z")

</div>

Hey folks. I’m upgrading our Node/Next ApolloServer from v3 to v4. I see formatError has changed slightly. Reading Error Handling - Apollo GraphQL Docs, it suggests that it should always at least be the original error th…

---

## [How to optimize graphql queries for interactive web apps?](https://community.apollographql.com/t/how-to-optimize-graphql-queries-for-interactive-web-apps/9616)

<div class="topic-metadata">

**Author:** [@carla-bruni88](https://community.apollographql.com/u/carla-bruni88)\
**Replies:** 0\
**Last updated:** [January 1, 2026, 7:01pm UTC](https://community.apollographql.com/t/how-to-optimize-graphql-queries-for-interactive-web-apps/9616 "2026-01-01T19:01:10Z")

</div>

Hi everyone, I’m working on a web app that integrates dynamic content and interactive features. One challenge I’ve faced recently involves optimizing graphql queries for performance, especially when handling media-heavy…

---

## [Apollo Server Tracing](https://community.apollographql.com/t/apollo-server-tracing/9602)

<div class="topic-metadata">

**Author:** [@Bilaaaaaaaaal](https://community.apollographql.com/u/Bilaaaaaaaaal)\
**Replies:** 0\
**Last updated:** [December 22, 2025, 11:09am UTC](https://community.apollographql.com/t/apollo-server-tracing/9602 "2025-12-22T11:09:09Z")

</div>

Hello guys! I have an express application that runs a graphql server. This was running on apollo server 3 and express 4. I recently upgraded it to Apollo server 5 and express 5. I also had to upgrade my dataloader/batchi…

---

## [How to disable rate-limiting for all the subgraphs?](https://community.apollographql.com/t/how-to-disable-rate-limiting-for-all-the-subgraphs/9384)

<div class="topic-metadata">

**Author:** [@mostafao-spotify](https://community.apollographql.com/u/mostafao-spotify)\
**Replies:** 2\
**Last updated:** [August 22, 2025, 5:09pm UTC](https://community.apollographql.com/t/how-to-disable-rate-limiting-for-all-the-subgraphs/9384 "2025-08-22T17:09:06Z")

</div>

We’re using the router as a standalone service and I’m a bit confused on how the rate limiting works in it, I’m trying to disable it completely because every now and then we receive a rate limiting error, even though we …

---

## [How to handle slow resolver performance in Apollo Server with large datasets?](https://community.apollographql.com/t/how-to-handle-slow-resolver-performance-in-apollo-server-with-large-datasets/9383)

<div class="topic-metadata">

**Author:** [@sopelos](https://community.apollographql.com/u/sopelos)\
**Replies:** 1\
**Last updated:** [August 18, 2025, 6:32pm UTC](https://community.apollographql.com/t/how-to-handle-slow-resolver-performance-in-apollo-server-with-large-datasets/9383 "2025-08-18T18:32:59Z")

</div>

Hello I am running Apollo Server for a project that queries fairly large datasets & I have noticed that some of my resolvers become very slow when handling complex queries with multiple nested fields. …

---

## [Remove field from schema](https://community.apollographql.com/t/remove-field-from-schema/9288)

<div class="topic-metadata">

**Author:** [@santsalc](https://community.apollographql.com/u/santsalc)\
**Replies:** 2\
**Last updated:** [July 15, 2025, 1:55pm UTC](https://community.apollographql.com/t/remove-field-from-schema/9288 "2025-07-15T13:55:17Z")

</div>

Hi! Is there a way to remove a field from the schema based on an environment variable? I’m working with a whitelabel GraphQL API and need to exclude a specific field during application startup. Would that be possible? I…

---

## [Getting 15K error messages an hour about HTTP 406](https://community.apollographql.com/t/getting-15k-error-messages-an-hour-about-http-406/9276)

<div class="topic-metadata">

**Author:** [@tmf-yuval](https://community.apollographql.com/u/tmf-yuval)\
**Replies:** 0\
**Last updated:** [July 7, 2025, 8:08pm UTC](https://community.apollographql.com/t/getting-15k-error-messages-an-hour-about-http-406/9276 "2025-07-07T20:08:11Z")

</div>

A production Apollo server with these plug ins: ApolloServerPluginLandingPageDisabled ApolloServerPluginUsageReportingDisabled ApolloServerPluginSchemaReportingDisabled ApolloServerPluginInlineTraceDisabled Is throw…

---

## [\`ApolloServerOptions\<TContext\>\` is not assignable](https://community.apollographql.com/t/apolloserveroptions-tcontext-is-not-assignable/9224)

<div class="topic-metadata">

**Author:** [@mittalyashu](https://community.apollographql.com/u/mittalyashu)\
**Replies:** 1\
**Last updated:** [June 23, 2025, 6:07pm UTC](https://community.apollographql.com/t/apolloserveroptions-tcontext-is-not-assignable/9224 "2025-06-23T18:07:23Z")

</div>

the title is bit vague, not sure what is the exact source of the issue I am trying to migrate the apollo server from v3 to v4, the dev server seems to be working fine without any runtime errors (related to apollo server…

---

## [Filtering on fields across multiple subgraphs](https://community.apollographql.com/t/filtering-on-fields-across-multiple-subgraphs/9108)

<div class="topic-metadata">

**Author:** [@steffen](https://community.apollographql.com/u/steffen)\
**Replies:** 2\
**Last updated:** [June 10, 2025, 7:45am UTC](https://community.apollographql.com/t/filtering-on-fields-across-multiple-subgraphs/9108 "2025-06-10T07:45:52Z")

</div>

Hello, Currently I’m working on a POC to migrate some of our frontend api’s to GraphQL with federation. In one of the use cases I have the following two subgraphs(simplified for the sake of abbreviation). # Organisati…

---

## [Supergraph queries from subgraph](https://community.apollographql.com/t/supergraph-queries-from-subgraph/9032)

<div class="topic-metadata">

**Author:** [@Chris\_Coker](https://community.apollographql.com/u/Chris_Coker)\
**Replies:** 2\
**Last updated:** [May 13, 2025, 11:43pm UTC](https://community.apollographql.com/t/supergraph-queries-from-subgraph/9032 "2025-05-13T23:43:24Z")

</div>

Hi there, I’m wondering if any of you all have initiated graphql queries to your supergraph endpoint from one of the underlying subgraphs. For example, if there is a subgraph that already provides the domain data you ne…

---

## [Setting the extensions value in graphql response](https://community.apollographql.com/t/setting-the-extensions-value-in-graphql-response/9019)

<div class="topic-metadata">

**Author:** [@dland2000](https://community.apollographql.com/u/dland2000)\
**Replies:** 2\
**Last updated:** [May 7, 2025, 8:06pm UTC](https://community.apollographql.com/t/setting-the-extensions-value-in-graphql-response/9019 "2025-05-07T20:06:29Z")

</div>

I’ve seen graphql implementations that make use of the top level extensions property of the response to include information such as the version number of the api in every response. For example: { "data": { "user"…

---

## [Handling the refresh of large schemas](https://community.apollographql.com/t/handling-the-refresh-of-large-schemas/8935)

<div class="topic-metadata">

**Author:** [@Richard\_Yee](https://community.apollographql.com/u/Richard_Yee)\
**Replies:** 2\
**Last updated:** [May 5, 2025, 4:32am UTC](https://community.apollographql.com/t/handling-the-refresh-of-large-schemas/8935 "2025-05-05T04:32:14Z")

</div>

Is there a best practice for handling the refresh of large schemas? We have a few thousand entities in our schema and are experiencing some issues when a change is made to the schema and the schema is refreshed across ou…

---

## [Why my post is not showing live](https://community.apollographql.com/t/why-my-post-is-not-showing-live/8990)

<div class="topic-metadata">

**Author:** [@martinanderson1](https://community.apollographql.com/u/martinanderson1)\
**Replies:** 1\
**Last updated:** [April 29, 2025, 5:49am UTC](https://community.apollographql.com/t/why-my-post-is-not-showing-live/8990 "2025-04-29T05:49:18Z")

</div>

Hello, I recently posted a thread:https://community.apollographql.com/t/akismet-has-temporarily-hidden-your-post/8983 I got a notification that left me disappointed as it shows my content is spam. I don’t know what …

---

## [Why is request batching disabled by default in v4?](https://community.apollographql.com/t/why-is-request-batching-disabled-by-default-in-v4/8934)

<div class="topic-metadata">

**Author:** [@teja42](https://community.apollographql.com/u/teja42)\
**Replies:** 0\
**Last updated:** [April 16, 2025, 9:10pm UTC](https://community.apollographql.com/t/why-is-request-batching-disabled-by-default-in-v4/8934 "2025-04-16T21:10:12Z")

</div>

I was working on something and found batching to be really useful for my use case but then realised that it is disabled by default. Enabling it very easy but I’m trying to understand the reason for disabling it by defaul…

---

## [Do I need the OPTIONS endpoint if my only intended clients are native mobile apps?](https://community.apollographql.com/t/do-i-need-the-options-endpoint-if-my-only-intended-clients-are-native-mobile-apps/8859)

<div class="topic-metadata">

**Author:** [@jleangstartup](https://community.apollographql.com/u/jleangstartup)\
**Replies:** 0\
**Last updated:** [April 7, 2025, 10:33am UTC](https://community.apollographql.com/t/do-i-need-the-options-endpoint-if-my-only-intended-clients-are-native-mobile-apps/8859 "2025-04-07T10:33:58Z")

</div>

From what I can gather, the OPTIONS endpoint is used to help facilitate CRSF (Cross-Site Request Forgery) prevention. If my server is only intended for native mobile apps, I am guessing I don’t need it? and also don’t n…

---

## [Error in using expressMiddleware](https://community.apollographql.com/t/error-in-using-expressmiddleware/8415)

<div class="topic-metadata">

**Author:** [@Mehdi\_Anoosheh](https://community.apollographql.com/u/Mehdi_Anoosheh)\
**Replies:** 3\
**Last updated:** [April 4, 2025, 1:52pm UTC](https://community.apollographql.com/t/error-in-using-expressmiddleware/8415 "2025-04-04T13:52:22Z")

</div>

Hi in this code I tried to use middleWare in express typescript but when I type: app.use(‘/graphql’, expressMiddleware(server)); I receive this error: " No overload matches this call. The last overload gave the fol…

---

## [How to Set Custom Response Header for a Specific Query in Apollo Server v4](https://community.apollographql.com/t/how-to-set-custom-response-header-for-a-specific-query-in-apollo-server-v4/8832)

<div class="topic-metadata">

**Author:** [@nikhil](https://community.apollographql.com/u/nikhil)\
**Replies:** 3\
**Last updated:** [April 1, 2025, 1:13pm UTC](https://community.apollographql.com/t/how-to-set-custom-response-header-for-a-specific-query-in-apollo-server-v4/8832 "2025-04-01T13:13:40Z")

</div>

Hi everyone, I’m using Apollo Server v4 (standalone mode) in a Node.js project, and I’m wondering if it’s possible to set a custom response header only for a specific query, and based on some runtime condition. For exa…

---

## [NextJS Support two years later](https://community.apollographql.com/t/nextjs-support-two-years-later/8723)

<div class="topic-metadata">

**Author:** [@David\_Bates](https://community.apollographql.com/u/David_Bates)\
**Replies:** 2\
**Last updated:** [March 27, 2025, 8:14pm UTC](https://community.apollographql.com/t/nextjs-support-two-years-later/8723 "2025-03-27T20:14:12Z")

</div>

It’s been nearly two years since this post: What’s happening with Apollo support of NextJS? Is something non-experimental coming down the pipe?

---

## [Getting error : missing parent type for field](https://community.apollographql.com/t/getting-error-missing-parent-type-for-field/8812)

<div class="topic-metadata">

**Author:** [@Vasu\_Rangpariya](https://community.apollographql.com/u/Vasu_Rangpariya)\
**Replies:** 1\
**Last updated:** [March 27, 2025, 3:14pm UTC](https://community.apollographql.com/t/getting-error-missing-parent-type-for-field/8812 "2025-03-27T15:14:44Z")

</div>

Error: shouldn’t happen: missing parent type for field myquery at Object.Field (/app/node\_modules/@apollo/utils.usagereporting/dist/calculateReferencedFieldsByType.js:20:23) at Object.enter (/app/node\_modules/graphql/u…

---

## [How do the Resolvers optimize database calls?](https://community.apollographql.com/t/how-do-the-resolvers-optimize-database-calls/8693)

<div class="topic-metadata">

**Author:** [@natethelen](https://community.apollographql.com/u/natethelen)\
**Replies:** 3\
**Last updated:** [March 8, 2025, 1:04am UTC](https://community.apollographql.com/t/how-do-the-resolvers-optimize-database-calls/8693 "2025-03-08T01:04:41Z")

</div>

We are using @apollo/server^4.11.3" in Node and have seen some inconsistent behavior that I would lover to get to the bottom of so that we can improve the performance of our API. Let’s say we have a query that has a 4 l…

---

## [DataSource Initialization in AS4](https://community.apollographql.com/t/datasource-initialization-in-as4/8313)

<div class="topic-metadata">

**Author:** [@sailesh](https://community.apollographql.com/u/sailesh)\
**Replies:** 8\
**Last updated:** [February 4, 2025, 6:54pm UTC](https://community.apollographql.com/t/datasource-initialization-in-as4/8313 "2025-02-04T18:54:39Z")

</div>

I’m facing memory leaks and it seems like related to the way we initialize our datasources. As per this issue #6047, we’re creating a new DataSources object on each request, which we were doing in AS3 as well. But the d…

---

## [Apollo Integration Testing](https://community.apollographql.com/t/apollo-integration-testing/2206)

<div class="topic-metadata">

**Author:** [@javida1492](https://community.apollographql.com/u/javida1492)\
**Replies:** 1\
**Last updated:** [January 31, 2025, 10:03pm UTC](https://community.apollographql.com/t/apollo-integration-testing/2206 "2025-01-31T22:03:15Z")

</div>

I am looking into apollo integration testing and the only information there is is in this article (Integration Testing - Apollo GraphQL Docs) but I am looking for some more in-depth or complete examples as this doesnt re…

---

## [GraphQLResolverMap no longer includes GraphQLScalarType](https://community.apollographql.com/t/graphqlresolvermap-no-longer-includes-graphqlscalartype/6259)

<div class="topic-metadata">

**Author:** [@Clemens](https://community.apollographql.com/u/Clemens)\
**Replies:** 0\
**Last updated:** [May 15, 2023, 5:53pm UTC](https://community.apollographql.com/t/graphqlresolvermap-no-longer-includes-graphqlscalartype/6259 "2023-05-15T17:53:06Z")

</div>

I am upgrading from Apollo 2 to 3 (long overdue, I know) and while I’m at it, I also bumped graphql from 15.6.0 to 16.6.0. My compiler is spitting out errors that I traced down to the GraphQLResolverMap no longer accept…

---

## [Is it possible to have a object in typeDefs without having to declare it explicitly](https://community.apollographql.com/t/is-it-possible-to-have-a-object-in-typedefs-without-having-to-declare-it-explicitly/6108)

<div class="topic-metadata">

**Author:** [@Hernans](https://community.apollographql.com/u/Hernans)\
**Replies:** 0\
**Last updated:** [April 8, 2023, 11:06pm UTC](https://community.apollographql.com/t/is-it-possible-to-have-a-object-in-typedefs-without-having-to-declare-it-explicitly/6108 "2023-04-08T23:06:11Z")

</div>

hi there im new to apollo server, im doing the backend of a cooking site, the thing is that in my mongo schema i got this code const recipeSchema = new Schema({ title: { type: String, required: true …

---

## [I need suggestion on how to optimize GraphQL queries for performance](https://community.apollographql.com/t/i-need-suggestion-on-how-to-optimize-graphql-queries-for-performance/7643)

<div class="topic-metadata">

**Author:** [@alina](https://community.apollographql.com/u/alina)\
**Replies:** 0\
**Last updated:** [June 21, 2024, 7:38am UTC](https://community.apollographql.com/t/i-need-suggestion-on-how-to-optimize-graphql-queries-for-performance/7643 "2024-06-21T07:38:43Z")

</div>

Hey guys! :smiling\_face\_with\_three\_hearts: I am building our backend API with Apollo Server and GraphQL, and things are going well for the most part. However, we’ve noticed some GraphQL queries taking a while to execut…

---

## [How do I apply a graphql-middleware to my Apollo Federation?](https://community.apollographql.com/t/how-do-i-apply-a-graphql-middleware-to-my-apollo-federation/6432)

<div class="topic-metadata">

**Author:** [@foobar123](https://community.apollographql.com/u/foobar123)\
**Replies:** 0\
**Last updated:** [June 30, 2023, 12:34pm UTC](https://community.apollographql.com/t/how-do-i-apply-a-graphql-middleware-to-my-apollo-federation/6432 "2023-06-30T12:34:36Z")

</div>

Hello, I don’t use the managed Apollo federation instead I have a solution which looks like this: const server = new ApolloServer({ gateway: new ApolloGateway({ supergraphSdl: new IntrospectAndCompose({ …

[Next page](https://community.apollographql.com/c/server/32.md?page=1)
