1 2 3 4 5 6 7 8 9 10 11 12type User { id: ID! @id email: String! @unique posts: [Post!]! } type Post { author: User! id: ID! @id title: String! published: Boolean! }
Prisma ensures the consistency of your data by applying a strong schema over any database.
Prismas declarative migration system is centered around the datamodel.prisma file that describes all aspects of your database.
Prisma can be used with any migration system. It is easy to get started with Prisma migrations and transition to traditional SQL migration scripts when required.
Use the expressive SDL syntax to define your database schema.
SDL takes away the noise from SQL migrations and lets you define a datamodel in a clear and concise way.
The Relay connection model is a powerful way to expose pagination in a GraphQL API. It is supported by Prisma out-of-the-box.
Design your domain model using a simple expressive syntax called SDL. It is easy to learn and allows you to express everything from simple scalar types to relations and embedded documents.
Connect Prisma to a new database or introspect an existing database.
Define your datamodel using the simple and declarative SDL syntax.
Migrate your database based on the defined datamodel.
Prisma generates SQL operations and migrates your database
Prisma Migrate is a declarative migration system. In the future we will introduce many new features that make it easier to use in more advanced workflows.
Subscribe to the Prisma newsletter to learn about new features as they are released.