In this chapter, we will use Prisma to build the back end of a blog app. This is an ORM tool that autogenerates a schema and other things for GraphQL.
The Setup
We will create a new directory called
blog-app-prisma. Inside it, we will create another folder named
server. In the
server folder, we will initialize an empty called
package.json by giving the command
npm. See Listing
5-1.
mkdir blog-app-prisma
cd blog-app-prisma/
mkdir server
cd server/
npm init –y
Next, we will install apollo-server and ...