Skip to content

Commit

Permalink
Project Dependency Update (#38)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
AlexMachin1997 authored Dec 27, 2021
1 parent 6d8a4cd commit ae914cb
Show file tree
Hide file tree
Showing 6 changed files with 5,909 additions and 8,380 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// @ts-nocheck
require('dotenv').config();

const { ApolloServer } = require('apollo-server');
const { ApolloServerPluginCacheControl } = require('apollo-server-core');

const { schema } = require('./schema');

// Create the ApolloServer instance and pass in the transformed GraphQL schemas (Models) and resolvers (Controllers)
const server = new ApolloServer({
subscriptions: false,
schema,
cacheControl: {
defaultMaxAge: 3600000
}
plugins: [ApolloServerPluginCacheControl({ defaultMaxAge: 3600000 })] // 1 hour
});

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

0 comments on commit ae914cb

Please sign in to comment.