Skip to content

Commit

Permalink
fix(apollo): disable persistedQueries
Browse files Browse the repository at this point in the history
* prevents unlimited use of in-memory cache used by persistedQueries by defult.
* removes warning about potential denial of service attack regarding
  persistentQueries
  • Loading branch information
hlolli authored and djwhitt committed Sep 1, 2023
1 parent c22647f commit d017429
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ app.post('/ar-io/admin/queue-tx', express.json(), async (req, res) => {
// GraphQL
const apolloServerInstanceGql = apolloServer(system.db, {
introspection: true,
persistedQueries: false,
});
apolloServerInstanceGql.start().then(() => {
apolloServerInstanceGql.applyMiddleware({
Expand Down

0 comments on commit d017429

Please sign in to comment.