Develop Prisma Service

Prisma services provide a GraphQL mapping to your database. Each Prisma service exposes a GraphQL CRUD/realtime API, called the Prisma API. The GraphQL schema defining the operations of the Prisma API is called the Prisma GraphQL schema. The Prisma GraphQL schema is auto-generated based on your data model.

A Prisma service is defined by a service configuration which consists of:

  • A prisma.yml configuration file
  • A data model written in GraphQL SDL

This chapter explains how to configure, manage and deploy your Prisma services.


Service Configuration

PageDescription
Data ModelLearn everything about the Prisma data model which serves as foundation for the CRUD operations in the Prisma API.
prisma.ymlThink of prisma.yml as the template for a Prisma service.

Prisma CLI

PageDescription
Using the Prisma CLILearn how to use the Prisma CLI.
CLI Command ReferenceLearn the details of all CLI commands.

Workflows

PageDescription
Connecting An Existing Database (Introspection)Learn how to use Prisma with your existing database.
Data Import & ExportLearn how to import and export data using Prisma.
Server-side SubscriptionsLearn how to configure webhooks for subscription events.
MigrationsLearn how to perform database migrations using Prisma.