In this chapter, we will start creating an e-commerce app and learn how to use GraphQL with it.
Setting Up the GraphQL Server
First, we will create an index.js file in our e-commerce app. Here, we import ApolloServer and gql first. With gql, we define the structure of the query. The query itself is given in resolvers.