Updated apollo and graphql packages and dependencies to be compatible with Node v20
Description
Removed the following packages to use Apollo v4 packages @apollo/client and @apollo/server in their place:
apollo-cache-inmemory
apollo-client
apollo-link
apollo-link-error
apollo-link-http
apollo-server-express
apollo-utilities
Updated graphql packages
Replaced graphql-tools with @graphql-tools/schema
Removed graphql-tag to use @apollo/client:
import gql from "graphql-tag"; => import { gql } from "@apollo/client";
Replaced deprecated react-apollo:
import { ApolloProvider } from "react-apollo"; => import { ApolloProvider } from "@apollo/client";import { compose } from "react-apollo"; => import { flowRight as compose } from "lodash";
Refactored server/index.js and __test__/ files to work with updated apollo server + graphql packages
Checklist:
[ ] I have manually tested my changes on desktop and mobile
[ ] The test suite passes locally with my changes
[ ] If my change is a UI change, I have attached a screenshot to the description section of this pull request
Fixes # (issue)
Updated apollo and graphql packages and dependencies to be compatible with Node v20
Description
Removed the following packages to use Apollo v4 packages
@apollo/client
and@apollo/server
in their place: apollo-cache-inmemory apollo-client apollo-link apollo-link-error apollo-link-http apollo-server-express apollo-utilitiesUpdated graphql packages
Replaced graphql-tools with @graphql-tools/schema
Removed graphql-tag to use @apollo/client:
import gql from "graphql-tag";
=>import { gql } from "@apollo/client";
Replaced deprecated react-apollo:
import { ApolloProvider } from "react-apollo";
=>import { ApolloProvider } from "@apollo/client";
import { compose } from "react-apollo";
=>import { flowRight as compose } from "lodash";
Refactored
server/index.js
and__test__/
files to work with updated apollo server + graphql packagesChecklist: