$ npm install prisma-cli-core
Website • Docs • Blog • Forum • Slack • Twitter
Prisma - turn your database into a GraphQL API. Prisma lets you design your data model and have a production ready GraphQL API online in minutes.
The Prisma GraphQL API provides powerful abstractions and building blocks to develop flexible, scalable GraphQL backends:
Watch this 4 min tutorial or follow the steps below to get started with Prisma:
npm install -g prisma
The following command creates all files you need for a new service.
prisma init
Edit datamodel.graphql
to define your data model using the GraphQL SDL notation.
type Tweet {
id: ID! @unique
createdAt: DateTime!
text: String!
owner: User!
location: Location!
}
type User {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
handle: String! @unique
name: String
tweets: [Tweet!]!
}
type Location {
latitude: Float!
longitude: Float!
}
To deploy your service simply run the following command and select one of the hosted development clusters or setup a local Docker-based development environment:
prisma deploy
Use the endpoint from the previous step in your frontend (or backend) applications to connect to your GraphQL API.
Prisma is a secure API layer that sits in front of your database. Acting as a proxy, Prisma exposes a powerful GraphQL API and manages Rate-Limiting, Authentication, Logging and a host of other features. Because Prisma is a standalone process, it can be scaled independently from your application layer and provide scalable subscriptions infrastructure.
Prisma can be used for MySQL Databases out of the box. More database connectors will follow:
Join the discussion or contribute to influence which we'll work on next!
The most important component in Prisma is the GraphQL API:
Try the online demo: open GraphQL Playground
Prisma has a community of thousands of amazing developers and contributors. Welcome, please join us! 👋
Contributions are welcome and extremely helpful 🙌 Please refer to the contribution guide for more information.
© 2010 - cnpmjs.org x YWFE | Home | YWFE