I have been following a tutorial and attempting to launch the node server, but I am unable to import these functions from the Apollo package
const {graphqlExpress, graphiqlExpress} = require('apollo-server-express'); // importing functions here
const bodyParser = require('body-parser'); // importing parser
const cors = require('cors'); // importing cors
const express = require('express'); // importing cors
const { makeExecutableSchema } = require('graphql-tools');
const port = 9000; // defining port
const schema = makeExecutableSchema({typeDefs, resolvers}); // initializing schema
const app = express();
app.use(cors(), bodyParser.json());
app.use('/graphql', graphqlExpress({schema})); // encountering "not a function" error
app.use('/graphiql', graphiqlExpress({endpointUrl: '/graphql'})); // encountering "not a function" error
app.listen(port, () => console.log(`Server is running on the port ${port}`));
Upon starting the server, I am getting an error stating that "graphqlExpress is not a function", and when commented out and the server restarted, the same issue arises with graphiqlExpress. Could it be possible that the tutorial I am following is outdated and apollo-server-express no longer offers these functions?