© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
N. BiswasPractical GraphQLhttps://doi.org/10.1007/978-1-4842-9621-9_5

5. Creating an App with Prisma

Nabendu Biswas1  
(1)
Bhopal, India
 

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
Listing 5-1

Terminal

Next, we will install apollo-server and ...

Get Practical GraphQL: Learning Full-Stack GraphQL Development with Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.