Nestjs application does not display the error message during development only during production. I found no module where the apollo -server can be configured to cache: "bounded". The Nestjs documentation itself makes no mention of it anywhere.
The complete error message says:
Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Set cache: "bounded" or persistedQueries: false in your ApolloServer constructor, or see https://go.apollo.dev/s/cache-backends for other alternatives.
Here are some dependencies I suspect could be related to it.
"@nestjs/apollo": "10.0.19",
"@nestjs/common": "9.0.5",
"@nestjs/core": "9.0.5",
"@nestjs/graphql": "10.0.20",
A similar issue was opened at github and sadly it was closed without any solution.