Skip to content

Commit ae914cb

Browse files
Project Dependency Update (#38)
* chore: Updated various dependencies for the project, they are now all at the wanted version * chore: Readded the default caching time for responses. * fix: Fixed a failing test
1 parent 6d8a4cd commit ae914cb

File tree

6 files changed

+5909
-8380
lines changed

6 files changed

+5909
-8380
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
// @ts-nocheck
12
require('dotenv').config();
23

34
const { ApolloServer } = require('apollo-server');
5+
const { ApolloServerPluginCacheControl } = require('apollo-server-core');
6+
47
const { schema } = require('./schema');
58

69
// Create the ApolloServer instance and pass in the transformed GraphQL schemas (Models) and resolvers (Controllers)
710
const server = new ApolloServer({
8-
subscriptions: false,
911
schema,
10-
cacheControl: {
11-
defaultMaxAge: 3600000
12-
}
12+
plugins: [ApolloServerPluginCacheControl({ defaultMaxAge: 3600000 })] // 1 hour
1313
});
1414

1515
// Start listening to the ApolloServer for GraphQL queries like DiscoverMovies(relaseDate: 2019)

0 commit comments

Comments
 (0)