generated at
Prisma

型がめちゃめちゃ当たる








概念が多すぎて、全貌を把握するのが大変だmrsekut

ノウハウ

歴史とか
prismaのサンプルプロジェクトを作るコマンド





v1とv2の違い
v1で必要だったPrisma Serverが不要になった
「API Server」はGraphQL APIである必要はない
RESTでもgRPCThriftでもいい


v2は2つのコンポーネントからなる
Photon
ORM本体
現状はMySQL/PostgreSQL/SQLiteのみに対応
MongoDBへの対応も計画中らしい
Prisma Clientに改名したっぽい

Lift
マイグレーションエンジン
なにそれ #??



>Prisma + prisma-fabbrica で TypeScript かつノンフレームワークでありながら、ActiveRecord + FactoryBot 相当の体験が得られる日が近づいてそう ref








PrismaはORMか?
classではなくただのJSONを返すのがいわゆる一般的なORMとことなる




Developing with Prisma Migrate
Adding Prisma Migrate to an existing project
Team development with Prisma Migrate
Baselining a database
Enable PostgreSQL extensions for native database functions
Include unsupported database features
Customize a migration file
Squashing migrations
Generating down migrations
Migration troubleshooting in development
Seeding your database
Schema prototyping with db push
Patching / hotfixing a database in production
Migration troubleshooting in production
How to use Prisma with multiple database schemas
How to use Prisma's type system
Using Prisma with PlanetScale
Using Prisma with CockroachDB
Using Prisma with MongoDB
Troubleshooting
Creating bug reports
Help articles
Autocompletion in GraphQL resolvers with JavaScript
Modeling and querying many-to-many relations
Querying models based on their relations existence
Best practice for instantiating PrismaClient with Next.js
Using Prisma Client in a Next.js project in a monorepo setup
Solve package error with vercel/pkg
Compare columns of the same table with raw queries
Advanced database tasks
Advanced data validation
Data validation with CHECK constraints (PostgreSQL)