[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-prisma-prisma-client-api":3,"mdc-4mjrfj-key":37,"related-org-prisma-prisma-client-api":2869,"related-repo-prisma-prisma-client-api":3039},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":26,"repoUrl":27,"updatedAt":28,"license":29,"forks":30,"topics":31,"repo":32,"sourceUrl":35,"mdContent":36},"prisma-client-api","write database queries with Prisma Client","Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on \"prisma query\", \"findMany\", \"create\", \"update\", \"delete\", \"$transaction\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"prisma","Prisma","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fprisma.png",[12,16,19,22,23],{"name":13,"slug":14,"type":15},"TypeScript","typescript","tag",{"name":17,"slug":18,"type":15},"Database","database",{"name":20,"slug":21,"type":15},"ORM","orm",{"name":9,"slug":8,"type":15},{"name":24,"slug":25,"type":15},"API Development","api-development",44,"https:\u002F\u002Fgithub.com\u002Fprisma\u002Fskills","2026-04-06T18:48:31.666695","MIT",3,[],{"repoUrl":27,"stars":26,"forks":30,"topics":33,"description":34},[],null,"https:\u002F\u002Fgithub.com\u002Fprisma\u002Fskills\u002Ftree\u002FHEAD\u002Fprisma-client-api","---\nname: prisma-client-api\ndescription: Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on \"prisma query\", \"findMany\", \"create\", \"update\", \"delete\", \"$transaction\".\nlicense: MIT\nmetadata:\n  author: prisma\n  version: \"7.6.0\"\n---\n\n# Prisma Client API Reference\n\nComplete API reference for Prisma Client. This skill provides guidance on model queries, filtering, relations, and client methods for current Prisma projects.\n\n## When to Apply\n\nReference this skill when:\n- Writing database queries with Prisma Client\n- Performing CRUD operations (create, read, update, delete)\n- Filtering and sorting data\n- Working with relations\n- Using transactions\n- Configuring client options\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Client Construction | HIGH | `constructor` |\n| 2 | Model Queries | CRITICAL | `model-queries` |\n| 3 | Query Shape | HIGH | `query-options` |\n| 4 | Filtering | HIGH | `filters` |\n| 5 | Relations | HIGH | `relations` |\n| 6 | Transactions | CRITICAL | `transactions` |\n| 7 | Raw SQL | CRITICAL | `raw-queries` |\n| 8 | Client Methods | MEDIUM | `client-methods` |\n\n## Quick Reference\n\n- `constructor` - `PrismaClient` setup, adapter wiring, logging, and SQL commenter plugins\n- `model-queries` - CRUD operations and bulk operations\n- `query-options` - `select`, `include`, `omit`, sort, pagination\n- `filters` - scalar and logical filter operators\n- `relations` - relation reads and nested writes\n- `transactions` - array and interactive transaction patterns\n- `raw-queries` - `$queryRaw` and `$executeRaw` safety\n- `client-methods` - lifecycle methods, extensions, and `satisfies` patterns for `prisma-client`\n\n## Client Instantiation\n\n```typescript\nimport { PrismaClient } from '..\u002Fgenerated\u002Fclient'\nimport { PrismaPg } from '@prisma\u002Fadapter-pg'\n\nconst adapter = new PrismaPg({\n  connectionString: process.env.DATABASE_URL\n})\n\nconst prisma = new PrismaClient({ adapter })\n```\n\n## Model Query Methods\n\n| Method | Description |\n|--------|-------------|\n| `findUnique()` | Find one record by unique field |\n| `findUniqueOrThrow()` | Find one or throw error |\n| `findFirst()` | Find first matching record |\n| `findFirstOrThrow()` | Find first or throw error |\n| `findMany()` | Find multiple records |\n| `create()` | Create a new record |\n| `createMany()` | Create multiple records |\n| `createManyAndReturn()` | Create multiple and return them |\n| `update()` | Update one record |\n| `updateMany()` | Update multiple records |\n| `updateManyAndReturn()` | Update multiple and return them |\n| `upsert()` | Update or create record |\n| `delete()` | Delete one record |\n| `deleteMany()` | Delete multiple records |\n| `count()` | Count matching records |\n| `aggregate()` | Aggregate values (sum, avg, etc.) |\n| `groupBy()` | Group and aggregate |\n\n## Query Options\n\n| Option | Description |\n|--------|-------------|\n| `where` | Filter conditions |\n| `select` | Fields to include |\n| `include` | Relations to load |\n| `omit` | Fields to exclude |\n| `orderBy` | Sort order |\n| `take` | Limit results |\n| `skip` | Skip results (pagination) |\n| `cursor` | Cursor-based pagination |\n| `distinct` | Unique values only |\n\n## Client Methods\n\n| Method | Description |\n|--------|-------------|\n| `$connect()` | Explicitly connect to database |\n| `$disconnect()` | Disconnect from database |\n| `$transaction()` | Execute transaction |\n| `$queryRaw()` | Execute raw SQL query |\n| `$executeRaw()` | Execute raw SQL command |\n| `$on()` | Subscribe to events |\n| `$extends()` | Add extensions |\n\n## Quick Examples\n\n### Find records\n\n```typescript\n\u002F\u002F Find by unique field\nconst user = await prisma.user.findUnique({\n  where: { email: 'alice@prisma.io' }\n})\n\n\u002F\u002F Find with filter\nconst users = await prisma.user.findMany({\n  where: { role: 'ADMIN' },\n  orderBy: { createdAt: 'desc' },\n  take: 10\n})\n```\n\n### Create records\n\n```typescript\nconst user = await prisma.user.create({\n  data: {\n    email: 'alice@prisma.io',\n    name: 'Alice',\n    posts: {\n      create: { title: 'Hello World' }\n    }\n  },\n  include: { posts: true }\n})\n```\n\n### Update records\n\n```typescript\nconst user = await prisma.user.update({\n  where: { id: 1 },\n  data: { name: 'Alice Smith' }\n})\n```\n\n### Delete records\n\n```typescript\nawait prisma.user.delete({\n  where: { id: 1 }\n})\n```\n\n### Transactions\n\n```typescript\nconst [user, post] = await prisma.$transaction([\n  prisma.user.create({ data: { email: 'alice@prisma.io' } }),\n  prisma.post.create({ data: { title: 'Hello', authorId: 1 } })\n])\n```\n\n## Rule Files\n\nDetailed API documentation:\n\n```\nreferences\u002Fconstructor.md        - PrismaClient constructor options\nreferences\u002Fmodel-queries.md      - CRUD operations\nreferences\u002Fquery-options.md      - select, include, omit, where, orderBy\nreferences\u002Ffilters.md            - Filter conditions and operators\nreferences\u002Frelations.md          - Relation queries and nested operations\nreferences\u002Ftransactions.md       - Transaction API\nreferences\u002Fraw-queries.md        - $queryRaw, $executeRaw\nreferences\u002Fclient-methods.md     - $connect, $disconnect, $on, $extends\n```\n\n## Filter Operators\n\n| Operator | Description |\n|----------|-------------|\n| `equals` | Exact match |\n| `not` | Not equal |\n| `in` | In array |\n| `notIn` | Not in array |\n| `lt`, `lte` | Less than |\n| `gt`, `gte` | Greater than |\n| `contains` | String contains |\n| `startsWith` | String starts with |\n| `endsWith` | String ends with |\n| `mode` | Case sensitivity |\n\n## Relation Filters\n\n| Operator | Description |\n|----------|-------------|\n| `some` | At least one related record matches |\n| `every` | All related records match |\n| `none` | No related records match |\n| `is` | Related record matches (1-to-1) |\n| `isNot` | Related record doesn't match |\n\n## Resources\n\n- [Prisma Client API Reference](https:\u002F\u002Fwww.prisma.io\u002Fdocs\u002Form\u002Freference\u002Fprisma-client-reference)\n- [CRUD Operations](https:\u002F\u002Fwww.prisma.io\u002Fdocs\u002Form\u002Fprisma-client\u002Fqueries\u002Fcrud)\n- [Filtering and Sorting](https:\u002F\u002Fwww.prisma.io\u002Fdocs\u002Form\u002Fprisma-client\u002Fqueries\u002Ffiltering-and-sorting)\n\n## How to Use\n\nPick the category from the table above, then open the matching reference file for implementation details and examples.\n",{"data":38,"body":41},{"name":4,"description":6,"license":29,"metadata":39},{"author":8,"version":40},"7.6.0",{"type":42,"children":43},"root",[44,53,59,66,71,106,112,362,368,510,516,770,776,1087,1092,1263,1267,1406,1412,1419,1722,1728,1978,1984,2124,2130,2216,2220,2469,2475,2480,2490,2496,2701,2707,2812,2818,2852,2858,2863],{"type":45,"tag":46,"props":47,"children":49},"element","h1",{"id":48},"prisma-client-api-reference",[50],{"type":51,"value":52},"text","Prisma Client API Reference",{"type":45,"tag":54,"props":55,"children":56},"p",{},[57],{"type":51,"value":58},"Complete API reference for Prisma Client. This skill provides guidance on model queries, filtering, relations, and client methods for current Prisma projects.",{"type":45,"tag":60,"props":61,"children":63},"h2",{"id":62},"when-to-apply",[64],{"type":51,"value":65},"When to Apply",{"type":45,"tag":54,"props":67,"children":68},{},[69],{"type":51,"value":70},"Reference this skill when:",{"type":45,"tag":72,"props":73,"children":74},"ul",{},[75,81,86,91,96,101],{"type":45,"tag":76,"props":77,"children":78},"li",{},[79],{"type":51,"value":80},"Writing database queries with Prisma Client",{"type":45,"tag":76,"props":82,"children":83},{},[84],{"type":51,"value":85},"Performing CRUD operations (create, read, update, delete)",{"type":45,"tag":76,"props":87,"children":88},{},[89],{"type":51,"value":90},"Filtering and sorting data",{"type":45,"tag":76,"props":92,"children":93},{},[94],{"type":51,"value":95},"Working with relations",{"type":45,"tag":76,"props":97,"children":98},{},[99],{"type":51,"value":100},"Using transactions",{"type":45,"tag":76,"props":102,"children":103},{},[104],{"type":51,"value":105},"Configuring client options",{"type":45,"tag":60,"props":107,"children":109},{"id":108},"rule-categories-by-priority",[110],{"type":51,"value":111},"Rule Categories by Priority",{"type":45,"tag":113,"props":114,"children":115},"table",{},[116,145],{"type":45,"tag":117,"props":118,"children":119},"thead",{},[120],{"type":45,"tag":121,"props":122,"children":123},"tr",{},[124,130,135,140],{"type":45,"tag":125,"props":126,"children":127},"th",{},[128],{"type":51,"value":129},"Priority",{"type":45,"tag":125,"props":131,"children":132},{},[133],{"type":51,"value":134},"Category",{"type":45,"tag":125,"props":136,"children":137},{},[138],{"type":51,"value":139},"Impact",{"type":45,"tag":125,"props":141,"children":142},{},[143],{"type":51,"value":144},"Prefix",{"type":45,"tag":146,"props":147,"children":148},"tbody",{},[149,178,205,231,257,283,309,335],{"type":45,"tag":121,"props":150,"children":151},{},[152,158,163,168],{"type":45,"tag":153,"props":154,"children":155},"td",{},[156],{"type":51,"value":157},"1",{"type":45,"tag":153,"props":159,"children":160},{},[161],{"type":51,"value":162},"Client Construction",{"type":45,"tag":153,"props":164,"children":165},{},[166],{"type":51,"value":167},"HIGH",{"type":45,"tag":153,"props":169,"children":170},{},[171],{"type":45,"tag":172,"props":173,"children":175},"code",{"className":174},[],[176],{"type":51,"value":177},"constructor",{"type":45,"tag":121,"props":179,"children":180},{},[181,186,191,196],{"type":45,"tag":153,"props":182,"children":183},{},[184],{"type":51,"value":185},"2",{"type":45,"tag":153,"props":187,"children":188},{},[189],{"type":51,"value":190},"Model Queries",{"type":45,"tag":153,"props":192,"children":193},{},[194],{"type":51,"value":195},"CRITICAL",{"type":45,"tag":153,"props":197,"children":198},{},[199],{"type":45,"tag":172,"props":200,"children":202},{"className":201},[],[203],{"type":51,"value":204},"model-queries",{"type":45,"tag":121,"props":206,"children":207},{},[208,213,218,222],{"type":45,"tag":153,"props":209,"children":210},{},[211],{"type":51,"value":212},"3",{"type":45,"tag":153,"props":214,"children":215},{},[216],{"type":51,"value":217},"Query Shape",{"type":45,"tag":153,"props":219,"children":220},{},[221],{"type":51,"value":167},{"type":45,"tag":153,"props":223,"children":224},{},[225],{"type":45,"tag":172,"props":226,"children":228},{"className":227},[],[229],{"type":51,"value":230},"query-options",{"type":45,"tag":121,"props":232,"children":233},{},[234,239,244,248],{"type":45,"tag":153,"props":235,"children":236},{},[237],{"type":51,"value":238},"4",{"type":45,"tag":153,"props":240,"children":241},{},[242],{"type":51,"value":243},"Filtering",{"type":45,"tag":153,"props":245,"children":246},{},[247],{"type":51,"value":167},{"type":45,"tag":153,"props":249,"children":250},{},[251],{"type":45,"tag":172,"props":252,"children":254},{"className":253},[],[255],{"type":51,"value":256},"filters",{"type":45,"tag":121,"props":258,"children":259},{},[260,265,270,274],{"type":45,"tag":153,"props":261,"children":262},{},[263],{"type":51,"value":264},"5",{"type":45,"tag":153,"props":266,"children":267},{},[268],{"type":51,"value":269},"Relations",{"type":45,"tag":153,"props":271,"children":272},{},[273],{"type":51,"value":167},{"type":45,"tag":153,"props":275,"children":276},{},[277],{"type":45,"tag":172,"props":278,"children":280},{"className":279},[],[281],{"type":51,"value":282},"relations",{"type":45,"tag":121,"props":284,"children":285},{},[286,291,296,300],{"type":45,"tag":153,"props":287,"children":288},{},[289],{"type":51,"value":290},"6",{"type":45,"tag":153,"props":292,"children":293},{},[294],{"type":51,"value":295},"Transactions",{"type":45,"tag":153,"props":297,"children":298},{},[299],{"type":51,"value":195},{"type":45,"tag":153,"props":301,"children":302},{},[303],{"type":45,"tag":172,"props":304,"children":306},{"className":305},[],[307],{"type":51,"value":308},"transactions",{"type":45,"tag":121,"props":310,"children":311},{},[312,317,322,326],{"type":45,"tag":153,"props":313,"children":314},{},[315],{"type":51,"value":316},"7",{"type":45,"tag":153,"props":318,"children":319},{},[320],{"type":51,"value":321},"Raw SQL",{"type":45,"tag":153,"props":323,"children":324},{},[325],{"type":51,"value":195},{"type":45,"tag":153,"props":327,"children":328},{},[329],{"type":45,"tag":172,"props":330,"children":332},{"className":331},[],[333],{"type":51,"value":334},"raw-queries",{"type":45,"tag":121,"props":336,"children":337},{},[338,343,348,353],{"type":45,"tag":153,"props":339,"children":340},{},[341],{"type":51,"value":342},"8",{"type":45,"tag":153,"props":344,"children":345},{},[346],{"type":51,"value":347},"Client Methods",{"type":45,"tag":153,"props":349,"children":350},{},[351],{"type":51,"value":352},"MEDIUM",{"type":45,"tag":153,"props":354,"children":355},{},[356],{"type":45,"tag":172,"props":357,"children":359},{"className":358},[],[360],{"type":51,"value":361},"client-methods",{"type":45,"tag":60,"props":363,"children":365},{"id":364},"quick-reference",[366],{"type":51,"value":367},"Quick Reference",{"type":45,"tag":72,"props":369,"children":370},{},[371,389,399,431,441,451,461,486],{"type":45,"tag":76,"props":372,"children":373},{},[374,379,381,387],{"type":45,"tag":172,"props":375,"children":377},{"className":376},[],[378],{"type":51,"value":177},{"type":51,"value":380}," - ",{"type":45,"tag":172,"props":382,"children":384},{"className":383},[],[385],{"type":51,"value":386},"PrismaClient",{"type":51,"value":388}," setup, adapter wiring, logging, and SQL commenter plugins",{"type":45,"tag":76,"props":390,"children":391},{},[392,397],{"type":45,"tag":172,"props":393,"children":395},{"className":394},[],[396],{"type":51,"value":204},{"type":51,"value":398}," - CRUD operations and bulk operations",{"type":45,"tag":76,"props":400,"children":401},{},[402,407,408,414,416,422,423,429],{"type":45,"tag":172,"props":403,"children":405},{"className":404},[],[406],{"type":51,"value":230},{"type":51,"value":380},{"type":45,"tag":172,"props":409,"children":411},{"className":410},[],[412],{"type":51,"value":413},"select",{"type":51,"value":415},", ",{"type":45,"tag":172,"props":417,"children":419},{"className":418},[],[420],{"type":51,"value":421},"include",{"type":51,"value":415},{"type":45,"tag":172,"props":424,"children":426},{"className":425},[],[427],{"type":51,"value":428},"omit",{"type":51,"value":430},", sort, pagination",{"type":45,"tag":76,"props":432,"children":433},{},[434,439],{"type":45,"tag":172,"props":435,"children":437},{"className":436},[],[438],{"type":51,"value":256},{"type":51,"value":440}," - scalar and logical filter operators",{"type":45,"tag":76,"props":442,"children":443},{},[444,449],{"type":45,"tag":172,"props":445,"children":447},{"className":446},[],[448],{"type":51,"value":282},{"type":51,"value":450}," - relation reads and nested writes",{"type":45,"tag":76,"props":452,"children":453},{},[454,459],{"type":45,"tag":172,"props":455,"children":457},{"className":456},[],[458],{"type":51,"value":308},{"type":51,"value":460}," - array and interactive transaction patterns",{"type":45,"tag":76,"props":462,"children":463},{},[464,469,470,476,478,484],{"type":45,"tag":172,"props":465,"children":467},{"className":466},[],[468],{"type":51,"value":334},{"type":51,"value":380},{"type":45,"tag":172,"props":471,"children":473},{"className":472},[],[474],{"type":51,"value":475},"$queryRaw",{"type":51,"value":477}," and ",{"type":45,"tag":172,"props":479,"children":481},{"className":480},[],[482],{"type":51,"value":483},"$executeRaw",{"type":51,"value":485}," safety",{"type":45,"tag":76,"props":487,"children":488},{},[489,494,496,502,504],{"type":45,"tag":172,"props":490,"children":492},{"className":491},[],[493],{"type":51,"value":361},{"type":51,"value":495}," - lifecycle methods, extensions, and ",{"type":45,"tag":172,"props":497,"children":499},{"className":498},[],[500],{"type":51,"value":501},"satisfies",{"type":51,"value":503}," patterns for ",{"type":45,"tag":172,"props":505,"children":507},{"className":506},[],[508],{"type":51,"value":509},"prisma-client",{"type":45,"tag":60,"props":511,"children":513},{"id":512},"client-instantiation",[514],{"type":51,"value":515},"Client Instantiation",{"type":45,"tag":517,"props":518,"children":522},"pre",{"className":519,"code":520,"language":14,"meta":521,"style":521},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { PrismaClient } from '..\u002Fgenerated\u002Fclient'\nimport { PrismaPg } from '@prisma\u002Fadapter-pg'\n\nconst adapter = new PrismaPg({\n  connectionString: process.env.DATABASE_URL\n})\n\nconst prisma = new PrismaClient({ adapter })\n","",[523],{"type":45,"tag":172,"props":524,"children":525},{"__ignoreMap":521},[526,576,614,623,663,702,716,724],{"type":45,"tag":527,"props":528,"children":531},"span",{"class":529,"line":530},"line",1,[532,538,544,550,555,560,565,571],{"type":45,"tag":527,"props":533,"children":535},{"style":534},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[536],{"type":51,"value":537},"import",{"type":45,"tag":527,"props":539,"children":541},{"style":540},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[542],{"type":51,"value":543}," {",{"type":45,"tag":527,"props":545,"children":547},{"style":546},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[548],{"type":51,"value":549}," PrismaClient",{"type":45,"tag":527,"props":551,"children":552},{"style":540},[553],{"type":51,"value":554}," }",{"type":45,"tag":527,"props":556,"children":557},{"style":534},[558],{"type":51,"value":559}," from",{"type":45,"tag":527,"props":561,"children":562},{"style":540},[563],{"type":51,"value":564}," '",{"type":45,"tag":527,"props":566,"children":568},{"style":567},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[569],{"type":51,"value":570},"..\u002Fgenerated\u002Fclient",{"type":45,"tag":527,"props":572,"children":573},{"style":540},[574],{"type":51,"value":575},"'\n",{"type":45,"tag":527,"props":577,"children":579},{"class":529,"line":578},2,[580,584,588,593,597,601,605,610],{"type":45,"tag":527,"props":581,"children":582},{"style":534},[583],{"type":51,"value":537},{"type":45,"tag":527,"props":585,"children":586},{"style":540},[587],{"type":51,"value":543},{"type":45,"tag":527,"props":589,"children":590},{"style":546},[591],{"type":51,"value":592}," PrismaPg",{"type":45,"tag":527,"props":594,"children":595},{"style":540},[596],{"type":51,"value":554},{"type":45,"tag":527,"props":598,"children":599},{"style":534},[600],{"type":51,"value":559},{"type":45,"tag":527,"props":602,"children":603},{"style":540},[604],{"type":51,"value":564},{"type":45,"tag":527,"props":606,"children":607},{"style":567},[608],{"type":51,"value":609},"@prisma\u002Fadapter-pg",{"type":45,"tag":527,"props":611,"children":612},{"style":540},[613],{"type":51,"value":575},{"type":45,"tag":527,"props":615,"children":616},{"class":529,"line":30},[617],{"type":45,"tag":527,"props":618,"children":620},{"emptyLinePlaceholder":619},true,[621],{"type":51,"value":622},"\n",{"type":45,"tag":527,"props":624,"children":626},{"class":529,"line":625},4,[627,633,638,643,648,653,658],{"type":45,"tag":527,"props":628,"children":630},{"style":629},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[631],{"type":51,"value":632},"const",{"type":45,"tag":527,"props":634,"children":635},{"style":546},[636],{"type":51,"value":637}," adapter ",{"type":45,"tag":527,"props":639,"children":640},{"style":540},[641],{"type":51,"value":642},"=",{"type":45,"tag":527,"props":644,"children":645},{"style":540},[646],{"type":51,"value":647}," new",{"type":45,"tag":527,"props":649,"children":651},{"style":650},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[652],{"type":51,"value":592},{"type":45,"tag":527,"props":654,"children":655},{"style":546},[656],{"type":51,"value":657},"(",{"type":45,"tag":527,"props":659,"children":660},{"style":540},[661],{"type":51,"value":662},"{\n",{"type":45,"tag":527,"props":664,"children":666},{"class":529,"line":665},5,[667,673,678,683,688,693,697],{"type":45,"tag":527,"props":668,"children":670},{"style":669},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[671],{"type":51,"value":672},"  connectionString",{"type":45,"tag":527,"props":674,"children":675},{"style":540},[676],{"type":51,"value":677},":",{"type":45,"tag":527,"props":679,"children":680},{"style":546},[681],{"type":51,"value":682}," process",{"type":45,"tag":527,"props":684,"children":685},{"style":540},[686],{"type":51,"value":687},".",{"type":45,"tag":527,"props":689,"children":690},{"style":546},[691],{"type":51,"value":692},"env",{"type":45,"tag":527,"props":694,"children":695},{"style":540},[696],{"type":51,"value":687},{"type":45,"tag":527,"props":698,"children":699},{"style":546},[700],{"type":51,"value":701},"DATABASE_URL\n",{"type":45,"tag":527,"props":703,"children":705},{"class":529,"line":704},6,[706,711],{"type":45,"tag":527,"props":707,"children":708},{"style":540},[709],{"type":51,"value":710},"}",{"type":45,"tag":527,"props":712,"children":713},{"style":546},[714],{"type":51,"value":715},")\n",{"type":45,"tag":527,"props":717,"children":719},{"class":529,"line":718},7,[720],{"type":45,"tag":527,"props":721,"children":722},{"emptyLinePlaceholder":619},[723],{"type":51,"value":622},{"type":45,"tag":527,"props":725,"children":727},{"class":529,"line":726},8,[728,732,737,741,745,749,753,758,762,766],{"type":45,"tag":527,"props":729,"children":730},{"style":629},[731],{"type":51,"value":632},{"type":45,"tag":527,"props":733,"children":734},{"style":546},[735],{"type":51,"value":736}," prisma ",{"type":45,"tag":527,"props":738,"children":739},{"style":540},[740],{"type":51,"value":642},{"type":45,"tag":527,"props":742,"children":743},{"style":540},[744],{"type":51,"value":647},{"type":45,"tag":527,"props":746,"children":747},{"style":650},[748],{"type":51,"value":549},{"type":45,"tag":527,"props":750,"children":751},{"style":546},[752],{"type":51,"value":657},{"type":45,"tag":527,"props":754,"children":755},{"style":540},[756],{"type":51,"value":757},"{",{"type":45,"tag":527,"props":759,"children":760},{"style":546},[761],{"type":51,"value":637},{"type":45,"tag":527,"props":763,"children":764},{"style":540},[765],{"type":51,"value":710},{"type":45,"tag":527,"props":767,"children":768},{"style":546},[769],{"type":51,"value":715},{"type":45,"tag":60,"props":771,"children":773},{"id":772},"model-query-methods",[774],{"type":51,"value":775},"Model Query Methods",{"type":45,"tag":113,"props":777,"children":778},{},[779,795],{"type":45,"tag":117,"props":780,"children":781},{},[782],{"type":45,"tag":121,"props":783,"children":784},{},[785,790],{"type":45,"tag":125,"props":786,"children":787},{},[788],{"type":51,"value":789},"Method",{"type":45,"tag":125,"props":791,"children":792},{},[793],{"type":51,"value":794},"Description",{"type":45,"tag":146,"props":796,"children":797},{},[798,815,832,849,866,883,900,917,934,951,968,985,1002,1019,1036,1053,1070],{"type":45,"tag":121,"props":799,"children":800},{},[801,810],{"type":45,"tag":153,"props":802,"children":803},{},[804],{"type":45,"tag":172,"props":805,"children":807},{"className":806},[],[808],{"type":51,"value":809},"findUnique()",{"type":45,"tag":153,"props":811,"children":812},{},[813],{"type":51,"value":814},"Find one record by unique field",{"type":45,"tag":121,"props":816,"children":817},{},[818,827],{"type":45,"tag":153,"props":819,"children":820},{},[821],{"type":45,"tag":172,"props":822,"children":824},{"className":823},[],[825],{"type":51,"value":826},"findUniqueOrThrow()",{"type":45,"tag":153,"props":828,"children":829},{},[830],{"type":51,"value":831},"Find one or throw error",{"type":45,"tag":121,"props":833,"children":834},{},[835,844],{"type":45,"tag":153,"props":836,"children":837},{},[838],{"type":45,"tag":172,"props":839,"children":841},{"className":840},[],[842],{"type":51,"value":843},"findFirst()",{"type":45,"tag":153,"props":845,"children":846},{},[847],{"type":51,"value":848},"Find first matching record",{"type":45,"tag":121,"props":850,"children":851},{},[852,861],{"type":45,"tag":153,"props":853,"children":854},{},[855],{"type":45,"tag":172,"props":856,"children":858},{"className":857},[],[859],{"type":51,"value":860},"findFirstOrThrow()",{"type":45,"tag":153,"props":862,"children":863},{},[864],{"type":51,"value":865},"Find first or throw error",{"type":45,"tag":121,"props":867,"children":868},{},[869,878],{"type":45,"tag":153,"props":870,"children":871},{},[872],{"type":45,"tag":172,"props":873,"children":875},{"className":874},[],[876],{"type":51,"value":877},"findMany()",{"type":45,"tag":153,"props":879,"children":880},{},[881],{"type":51,"value":882},"Find multiple records",{"type":45,"tag":121,"props":884,"children":885},{},[886,895],{"type":45,"tag":153,"props":887,"children":888},{},[889],{"type":45,"tag":172,"props":890,"children":892},{"className":891},[],[893],{"type":51,"value":894},"create()",{"type":45,"tag":153,"props":896,"children":897},{},[898],{"type":51,"value":899},"Create a new record",{"type":45,"tag":121,"props":901,"children":902},{},[903,912],{"type":45,"tag":153,"props":904,"children":905},{},[906],{"type":45,"tag":172,"props":907,"children":909},{"className":908},[],[910],{"type":51,"value":911},"createMany()",{"type":45,"tag":153,"props":913,"children":914},{},[915],{"type":51,"value":916},"Create multiple records",{"type":45,"tag":121,"props":918,"children":919},{},[920,929],{"type":45,"tag":153,"props":921,"children":922},{},[923],{"type":45,"tag":172,"props":924,"children":926},{"className":925},[],[927],{"type":51,"value":928},"createManyAndReturn()",{"type":45,"tag":153,"props":930,"children":931},{},[932],{"type":51,"value":933},"Create multiple and return them",{"type":45,"tag":121,"props":935,"children":936},{},[937,946],{"type":45,"tag":153,"props":938,"children":939},{},[940],{"type":45,"tag":172,"props":941,"children":943},{"className":942},[],[944],{"type":51,"value":945},"update()",{"type":45,"tag":153,"props":947,"children":948},{},[949],{"type":51,"value":950},"Update one record",{"type":45,"tag":121,"props":952,"children":953},{},[954,963],{"type":45,"tag":153,"props":955,"children":956},{},[957],{"type":45,"tag":172,"props":958,"children":960},{"className":959},[],[961],{"type":51,"value":962},"updateMany()",{"type":45,"tag":153,"props":964,"children":965},{},[966],{"type":51,"value":967},"Update multiple records",{"type":45,"tag":121,"props":969,"children":970},{},[971,980],{"type":45,"tag":153,"props":972,"children":973},{},[974],{"type":45,"tag":172,"props":975,"children":977},{"className":976},[],[978],{"type":51,"value":979},"updateManyAndReturn()",{"type":45,"tag":153,"props":981,"children":982},{},[983],{"type":51,"value":984},"Update multiple and return them",{"type":45,"tag":121,"props":986,"children":987},{},[988,997],{"type":45,"tag":153,"props":989,"children":990},{},[991],{"type":45,"tag":172,"props":992,"children":994},{"className":993},[],[995],{"type":51,"value":996},"upsert()",{"type":45,"tag":153,"props":998,"children":999},{},[1000],{"type":51,"value":1001},"Update or create record",{"type":45,"tag":121,"props":1003,"children":1004},{},[1005,1014],{"type":45,"tag":153,"props":1006,"children":1007},{},[1008],{"type":45,"tag":172,"props":1009,"children":1011},{"className":1010},[],[1012],{"type":51,"value":1013},"delete()",{"type":45,"tag":153,"props":1015,"children":1016},{},[1017],{"type":51,"value":1018},"Delete one record",{"type":45,"tag":121,"props":1020,"children":1021},{},[1022,1031],{"type":45,"tag":153,"props":1023,"children":1024},{},[1025],{"type":45,"tag":172,"props":1026,"children":1028},{"className":1027},[],[1029],{"type":51,"value":1030},"deleteMany()",{"type":45,"tag":153,"props":1032,"children":1033},{},[1034],{"type":51,"value":1035},"Delete multiple records",{"type":45,"tag":121,"props":1037,"children":1038},{},[1039,1048],{"type":45,"tag":153,"props":1040,"children":1041},{},[1042],{"type":45,"tag":172,"props":1043,"children":1045},{"className":1044},[],[1046],{"type":51,"value":1047},"count()",{"type":45,"tag":153,"props":1049,"children":1050},{},[1051],{"type":51,"value":1052},"Count matching records",{"type":45,"tag":121,"props":1054,"children":1055},{},[1056,1065],{"type":45,"tag":153,"props":1057,"children":1058},{},[1059],{"type":45,"tag":172,"props":1060,"children":1062},{"className":1061},[],[1063],{"type":51,"value":1064},"aggregate()",{"type":45,"tag":153,"props":1066,"children":1067},{},[1068],{"type":51,"value":1069},"Aggregate values (sum, avg, etc.)",{"type":45,"tag":121,"props":1071,"children":1072},{},[1073,1082],{"type":45,"tag":153,"props":1074,"children":1075},{},[1076],{"type":45,"tag":172,"props":1077,"children":1079},{"className":1078},[],[1080],{"type":51,"value":1081},"groupBy()",{"type":45,"tag":153,"props":1083,"children":1084},{},[1085],{"type":51,"value":1086},"Group and aggregate",{"type":45,"tag":60,"props":1088,"children":1089},{"id":230},[1090],{"type":51,"value":1091},"Query Options",{"type":45,"tag":113,"props":1093,"children":1094},{},[1095,1110],{"type":45,"tag":117,"props":1096,"children":1097},{},[1098],{"type":45,"tag":121,"props":1099,"children":1100},{},[1101,1106],{"type":45,"tag":125,"props":1102,"children":1103},{},[1104],{"type":51,"value":1105},"Option",{"type":45,"tag":125,"props":1107,"children":1108},{},[1109],{"type":51,"value":794},{"type":45,"tag":146,"props":1111,"children":1112},{},[1113,1130,1146,1162,1178,1195,1212,1229,1246],{"type":45,"tag":121,"props":1114,"children":1115},{},[1116,1125],{"type":45,"tag":153,"props":1117,"children":1118},{},[1119],{"type":45,"tag":172,"props":1120,"children":1122},{"className":1121},[],[1123],{"type":51,"value":1124},"where",{"type":45,"tag":153,"props":1126,"children":1127},{},[1128],{"type":51,"value":1129},"Filter conditions",{"type":45,"tag":121,"props":1131,"children":1132},{},[1133,1141],{"type":45,"tag":153,"props":1134,"children":1135},{},[1136],{"type":45,"tag":172,"props":1137,"children":1139},{"className":1138},[],[1140],{"type":51,"value":413},{"type":45,"tag":153,"props":1142,"children":1143},{},[1144],{"type":51,"value":1145},"Fields to include",{"type":45,"tag":121,"props":1147,"children":1148},{},[1149,1157],{"type":45,"tag":153,"props":1150,"children":1151},{},[1152],{"type":45,"tag":172,"props":1153,"children":1155},{"className":1154},[],[1156],{"type":51,"value":421},{"type":45,"tag":153,"props":1158,"children":1159},{},[1160],{"type":51,"value":1161},"Relations to load",{"type":45,"tag":121,"props":1163,"children":1164},{},[1165,1173],{"type":45,"tag":153,"props":1166,"children":1167},{},[1168],{"type":45,"tag":172,"props":1169,"children":1171},{"className":1170},[],[1172],{"type":51,"value":428},{"type":45,"tag":153,"props":1174,"children":1175},{},[1176],{"type":51,"value":1177},"Fields to exclude",{"type":45,"tag":121,"props":1179,"children":1180},{},[1181,1190],{"type":45,"tag":153,"props":1182,"children":1183},{},[1184],{"type":45,"tag":172,"props":1185,"children":1187},{"className":1186},[],[1188],{"type":51,"value":1189},"orderBy",{"type":45,"tag":153,"props":1191,"children":1192},{},[1193],{"type":51,"value":1194},"Sort order",{"type":45,"tag":121,"props":1196,"children":1197},{},[1198,1207],{"type":45,"tag":153,"props":1199,"children":1200},{},[1201],{"type":45,"tag":172,"props":1202,"children":1204},{"className":1203},[],[1205],{"type":51,"value":1206},"take",{"type":45,"tag":153,"props":1208,"children":1209},{},[1210],{"type":51,"value":1211},"Limit results",{"type":45,"tag":121,"props":1213,"children":1214},{},[1215,1224],{"type":45,"tag":153,"props":1216,"children":1217},{},[1218],{"type":45,"tag":172,"props":1219,"children":1221},{"className":1220},[],[1222],{"type":51,"value":1223},"skip",{"type":45,"tag":153,"props":1225,"children":1226},{},[1227],{"type":51,"value":1228},"Skip results (pagination)",{"type":45,"tag":121,"props":1230,"children":1231},{},[1232,1241],{"type":45,"tag":153,"props":1233,"children":1234},{},[1235],{"type":45,"tag":172,"props":1236,"children":1238},{"className":1237},[],[1239],{"type":51,"value":1240},"cursor",{"type":45,"tag":153,"props":1242,"children":1243},{},[1244],{"type":51,"value":1245},"Cursor-based pagination",{"type":45,"tag":121,"props":1247,"children":1248},{},[1249,1258],{"type":45,"tag":153,"props":1250,"children":1251},{},[1252],{"type":45,"tag":172,"props":1253,"children":1255},{"className":1254},[],[1256],{"type":51,"value":1257},"distinct",{"type":45,"tag":153,"props":1259,"children":1260},{},[1261],{"type":51,"value":1262},"Unique values only",{"type":45,"tag":60,"props":1264,"children":1265},{"id":361},[1266],{"type":51,"value":347},{"type":45,"tag":113,"props":1268,"children":1269},{},[1270,1284],{"type":45,"tag":117,"props":1271,"children":1272},{},[1273],{"type":45,"tag":121,"props":1274,"children":1275},{},[1276,1280],{"type":45,"tag":125,"props":1277,"children":1278},{},[1279],{"type":51,"value":789},{"type":45,"tag":125,"props":1281,"children":1282},{},[1283],{"type":51,"value":794},{"type":45,"tag":146,"props":1285,"children":1286},{},[1287,1304,1321,1338,1355,1372,1389],{"type":45,"tag":121,"props":1288,"children":1289},{},[1290,1299],{"type":45,"tag":153,"props":1291,"children":1292},{},[1293],{"type":45,"tag":172,"props":1294,"children":1296},{"className":1295},[],[1297],{"type":51,"value":1298},"$connect()",{"type":45,"tag":153,"props":1300,"children":1301},{},[1302],{"type":51,"value":1303},"Explicitly connect to database",{"type":45,"tag":121,"props":1305,"children":1306},{},[1307,1316],{"type":45,"tag":153,"props":1308,"children":1309},{},[1310],{"type":45,"tag":172,"props":1311,"children":1313},{"className":1312},[],[1314],{"type":51,"value":1315},"$disconnect()",{"type":45,"tag":153,"props":1317,"children":1318},{},[1319],{"type":51,"value":1320},"Disconnect from database",{"type":45,"tag":121,"props":1322,"children":1323},{},[1324,1333],{"type":45,"tag":153,"props":1325,"children":1326},{},[1327],{"type":45,"tag":172,"props":1328,"children":1330},{"className":1329},[],[1331],{"type":51,"value":1332},"$transaction()",{"type":45,"tag":153,"props":1334,"children":1335},{},[1336],{"type":51,"value":1337},"Execute transaction",{"type":45,"tag":121,"props":1339,"children":1340},{},[1341,1350],{"type":45,"tag":153,"props":1342,"children":1343},{},[1344],{"type":45,"tag":172,"props":1345,"children":1347},{"className":1346},[],[1348],{"type":51,"value":1349},"$queryRaw()",{"type":45,"tag":153,"props":1351,"children":1352},{},[1353],{"type":51,"value":1354},"Execute raw SQL query",{"type":45,"tag":121,"props":1356,"children":1357},{},[1358,1367],{"type":45,"tag":153,"props":1359,"children":1360},{},[1361],{"type":45,"tag":172,"props":1362,"children":1364},{"className":1363},[],[1365],{"type":51,"value":1366},"$executeRaw()",{"type":45,"tag":153,"props":1368,"children":1369},{},[1370],{"type":51,"value":1371},"Execute raw SQL command",{"type":45,"tag":121,"props":1373,"children":1374},{},[1375,1384],{"type":45,"tag":153,"props":1376,"children":1377},{},[1378],{"type":45,"tag":172,"props":1379,"children":1381},{"className":1380},[],[1382],{"type":51,"value":1383},"$on()",{"type":45,"tag":153,"props":1385,"children":1386},{},[1387],{"type":51,"value":1388},"Subscribe to events",{"type":45,"tag":121,"props":1390,"children":1391},{},[1392,1401],{"type":45,"tag":153,"props":1393,"children":1394},{},[1395],{"type":45,"tag":172,"props":1396,"children":1398},{"className":1397},[],[1399],{"type":51,"value":1400},"$extends()",{"type":45,"tag":153,"props":1402,"children":1403},{},[1404],{"type":51,"value":1405},"Add extensions",{"type":45,"tag":60,"props":1407,"children":1409},{"id":1408},"quick-examples",[1410],{"type":51,"value":1411},"Quick Examples",{"type":45,"tag":1413,"props":1414,"children":1416},"h3",{"id":1415},"find-records",[1417],{"type":51,"value":1418},"Find records",{"type":45,"tag":517,"props":1420,"children":1422},{"className":519,"code":1421,"language":14,"meta":521,"style":521},"\u002F\u002F Find by unique field\nconst user = await prisma.user.findUnique({\n  where: { email: 'alice@prisma.io' }\n})\n\n\u002F\u002F Find with filter\nconst users = await prisma.user.findMany({\n  where: { role: 'ADMIN' },\n  orderBy: { createdAt: 'desc' },\n  take: 10\n})\n",[1423],{"type":45,"tag":172,"props":1424,"children":1425},{"__ignoreMap":521},[1426,1435,1487,1531,1542,1549,1557,1606,1648,1691,1710],{"type":45,"tag":527,"props":1427,"children":1428},{"class":529,"line":530},[1429],{"type":45,"tag":527,"props":1430,"children":1432},{"style":1431},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[1433],{"type":51,"value":1434},"\u002F\u002F Find by unique field\n",{"type":45,"tag":527,"props":1436,"children":1437},{"class":529,"line":578},[1438,1442,1447,1451,1456,1461,1465,1470,1474,1479,1483],{"type":45,"tag":527,"props":1439,"children":1440},{"style":629},[1441],{"type":51,"value":632},{"type":45,"tag":527,"props":1443,"children":1444},{"style":546},[1445],{"type":51,"value":1446}," user ",{"type":45,"tag":527,"props":1448,"children":1449},{"style":540},[1450],{"type":51,"value":642},{"type":45,"tag":527,"props":1452,"children":1453},{"style":534},[1454],{"type":51,"value":1455}," await",{"type":45,"tag":527,"props":1457,"children":1458},{"style":546},[1459],{"type":51,"value":1460}," prisma",{"type":45,"tag":527,"props":1462,"children":1463},{"style":540},[1464],{"type":51,"value":687},{"type":45,"tag":527,"props":1466,"children":1467},{"style":546},[1468],{"type":51,"value":1469},"user",{"type":45,"tag":527,"props":1471,"children":1472},{"style":540},[1473],{"type":51,"value":687},{"type":45,"tag":527,"props":1475,"children":1476},{"style":650},[1477],{"type":51,"value":1478},"findUnique",{"type":45,"tag":527,"props":1480,"children":1481},{"style":546},[1482],{"type":51,"value":657},{"type":45,"tag":527,"props":1484,"children":1485},{"style":540},[1486],{"type":51,"value":662},{"type":45,"tag":527,"props":1488,"children":1489},{"class":529,"line":30},[1490,1495,1499,1503,1508,1512,1516,1521,1526],{"type":45,"tag":527,"props":1491,"children":1492},{"style":669},[1493],{"type":51,"value":1494},"  where",{"type":45,"tag":527,"props":1496,"children":1497},{"style":540},[1498],{"type":51,"value":677},{"type":45,"tag":527,"props":1500,"children":1501},{"style":540},[1502],{"type":51,"value":543},{"type":45,"tag":527,"props":1504,"children":1505},{"style":669},[1506],{"type":51,"value":1507}," email",{"type":45,"tag":527,"props":1509,"children":1510},{"style":540},[1511],{"type":51,"value":677},{"type":45,"tag":527,"props":1513,"children":1514},{"style":540},[1515],{"type":51,"value":564},{"type":45,"tag":527,"props":1517,"children":1518},{"style":567},[1519],{"type":51,"value":1520},"alice@prisma.io",{"type":45,"tag":527,"props":1522,"children":1523},{"style":540},[1524],{"type":51,"value":1525},"'",{"type":45,"tag":527,"props":1527,"children":1528},{"style":540},[1529],{"type":51,"value":1530}," }\n",{"type":45,"tag":527,"props":1532,"children":1533},{"class":529,"line":625},[1534,1538],{"type":45,"tag":527,"props":1535,"children":1536},{"style":540},[1537],{"type":51,"value":710},{"type":45,"tag":527,"props":1539,"children":1540},{"style":546},[1541],{"type":51,"value":715},{"type":45,"tag":527,"props":1543,"children":1544},{"class":529,"line":665},[1545],{"type":45,"tag":527,"props":1546,"children":1547},{"emptyLinePlaceholder":619},[1548],{"type":51,"value":622},{"type":45,"tag":527,"props":1550,"children":1551},{"class":529,"line":704},[1552],{"type":45,"tag":527,"props":1553,"children":1554},{"style":1431},[1555],{"type":51,"value":1556},"\u002F\u002F Find with filter\n",{"type":45,"tag":527,"props":1558,"children":1559},{"class":529,"line":718},[1560,1564,1569,1573,1577,1581,1585,1589,1593,1598,1602],{"type":45,"tag":527,"props":1561,"children":1562},{"style":629},[1563],{"type":51,"value":632},{"type":45,"tag":527,"props":1565,"children":1566},{"style":546},[1567],{"type":51,"value":1568}," users ",{"type":45,"tag":527,"props":1570,"children":1571},{"style":540},[1572],{"type":51,"value":642},{"type":45,"tag":527,"props":1574,"children":1575},{"style":534},[1576],{"type":51,"value":1455},{"type":45,"tag":527,"props":1578,"children":1579},{"style":546},[1580],{"type":51,"value":1460},{"type":45,"tag":527,"props":1582,"children":1583},{"style":540},[1584],{"type":51,"value":687},{"type":45,"tag":527,"props":1586,"children":1587},{"style":546},[1588],{"type":51,"value":1469},{"type":45,"tag":527,"props":1590,"children":1591},{"style":540},[1592],{"type":51,"value":687},{"type":45,"tag":527,"props":1594,"children":1595},{"style":650},[1596],{"type":51,"value":1597},"findMany",{"type":45,"tag":527,"props":1599,"children":1600},{"style":546},[1601],{"type":51,"value":657},{"type":45,"tag":527,"props":1603,"children":1604},{"style":540},[1605],{"type":51,"value":662},{"type":45,"tag":527,"props":1607,"children":1608},{"class":529,"line":726},[1609,1613,1617,1621,1626,1630,1634,1639,1643],{"type":45,"tag":527,"props":1610,"children":1611},{"style":669},[1612],{"type":51,"value":1494},{"type":45,"tag":527,"props":1614,"children":1615},{"style":540},[1616],{"type":51,"value":677},{"type":45,"tag":527,"props":1618,"children":1619},{"style":540},[1620],{"type":51,"value":543},{"type":45,"tag":527,"props":1622,"children":1623},{"style":669},[1624],{"type":51,"value":1625}," role",{"type":45,"tag":527,"props":1627,"children":1628},{"style":540},[1629],{"type":51,"value":677},{"type":45,"tag":527,"props":1631,"children":1632},{"style":540},[1633],{"type":51,"value":564},{"type":45,"tag":527,"props":1635,"children":1636},{"style":567},[1637],{"type":51,"value":1638},"ADMIN",{"type":45,"tag":527,"props":1640,"children":1641},{"style":540},[1642],{"type":51,"value":1525},{"type":45,"tag":527,"props":1644,"children":1645},{"style":540},[1646],{"type":51,"value":1647}," },\n",{"type":45,"tag":527,"props":1649,"children":1651},{"class":529,"line":1650},9,[1652,1657,1661,1665,1670,1674,1678,1683,1687],{"type":45,"tag":527,"props":1653,"children":1654},{"style":669},[1655],{"type":51,"value":1656},"  orderBy",{"type":45,"tag":527,"props":1658,"children":1659},{"style":540},[1660],{"type":51,"value":677},{"type":45,"tag":527,"props":1662,"children":1663},{"style":540},[1664],{"type":51,"value":543},{"type":45,"tag":527,"props":1666,"children":1667},{"style":669},[1668],{"type":51,"value":1669}," createdAt",{"type":45,"tag":527,"props":1671,"children":1672},{"style":540},[1673],{"type":51,"value":677},{"type":45,"tag":527,"props":1675,"children":1676},{"style":540},[1677],{"type":51,"value":564},{"type":45,"tag":527,"props":1679,"children":1680},{"style":567},[1681],{"type":51,"value":1682},"desc",{"type":45,"tag":527,"props":1684,"children":1685},{"style":540},[1686],{"type":51,"value":1525},{"type":45,"tag":527,"props":1688,"children":1689},{"style":540},[1690],{"type":51,"value":1647},{"type":45,"tag":527,"props":1692,"children":1694},{"class":529,"line":1693},10,[1695,1700,1704],{"type":45,"tag":527,"props":1696,"children":1697},{"style":669},[1698],{"type":51,"value":1699},"  take",{"type":45,"tag":527,"props":1701,"children":1702},{"style":540},[1703],{"type":51,"value":677},{"type":45,"tag":527,"props":1705,"children":1707},{"style":1706},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1708],{"type":51,"value":1709}," 10\n",{"type":45,"tag":527,"props":1711,"children":1713},{"class":529,"line":1712},11,[1714,1718],{"type":45,"tag":527,"props":1715,"children":1716},{"style":540},[1717],{"type":51,"value":710},{"type":45,"tag":527,"props":1719,"children":1720},{"style":546},[1721],{"type":51,"value":715},{"type":45,"tag":1413,"props":1723,"children":1725},{"id":1724},"create-records",[1726],{"type":51,"value":1727},"Create records",{"type":45,"tag":517,"props":1729,"children":1731},{"className":519,"code":1730,"language":14,"meta":521,"style":521},"const user = await prisma.user.create({\n  data: {\n    email: 'alice@prisma.io',\n    name: 'Alice',\n    posts: {\n      create: { title: 'Hello World' }\n    }\n  },\n  include: { posts: true }\n})\n",[1732],{"type":45,"tag":172,"props":1733,"children":1734},{"__ignoreMap":521},[1735,1783,1800,1829,1858,1874,1916,1924,1932,1967],{"type":45,"tag":527,"props":1736,"children":1737},{"class":529,"line":530},[1738,1742,1746,1750,1754,1758,1762,1766,1770,1775,1779],{"type":45,"tag":527,"props":1739,"children":1740},{"style":629},[1741],{"type":51,"value":632},{"type":45,"tag":527,"props":1743,"children":1744},{"style":546},[1745],{"type":51,"value":1446},{"type":45,"tag":527,"props":1747,"children":1748},{"style":540},[1749],{"type":51,"value":642},{"type":45,"tag":527,"props":1751,"children":1752},{"style":534},[1753],{"type":51,"value":1455},{"type":45,"tag":527,"props":1755,"children":1756},{"style":546},[1757],{"type":51,"value":1460},{"type":45,"tag":527,"props":1759,"children":1760},{"style":540},[1761],{"type":51,"value":687},{"type":45,"tag":527,"props":1763,"children":1764},{"style":546},[1765],{"type":51,"value":1469},{"type":45,"tag":527,"props":1767,"children":1768},{"style":540},[1769],{"type":51,"value":687},{"type":45,"tag":527,"props":1771,"children":1772},{"style":650},[1773],{"type":51,"value":1774},"create",{"type":45,"tag":527,"props":1776,"children":1777},{"style":546},[1778],{"type":51,"value":657},{"type":45,"tag":527,"props":1780,"children":1781},{"style":540},[1782],{"type":51,"value":662},{"type":45,"tag":527,"props":1784,"children":1785},{"class":529,"line":578},[1786,1791,1795],{"type":45,"tag":527,"props":1787,"children":1788},{"style":669},[1789],{"type":51,"value":1790},"  data",{"type":45,"tag":527,"props":1792,"children":1793},{"style":540},[1794],{"type":51,"value":677},{"type":45,"tag":527,"props":1796,"children":1797},{"style":540},[1798],{"type":51,"value":1799}," {\n",{"type":45,"tag":527,"props":1801,"children":1802},{"class":529,"line":30},[1803,1808,1812,1816,1820,1824],{"type":45,"tag":527,"props":1804,"children":1805},{"style":669},[1806],{"type":51,"value":1807},"    email",{"type":45,"tag":527,"props":1809,"children":1810},{"style":540},[1811],{"type":51,"value":677},{"type":45,"tag":527,"props":1813,"children":1814},{"style":540},[1815],{"type":51,"value":564},{"type":45,"tag":527,"props":1817,"children":1818},{"style":567},[1819],{"type":51,"value":1520},{"type":45,"tag":527,"props":1821,"children":1822},{"style":540},[1823],{"type":51,"value":1525},{"type":45,"tag":527,"props":1825,"children":1826},{"style":540},[1827],{"type":51,"value":1828},",\n",{"type":45,"tag":527,"props":1830,"children":1831},{"class":529,"line":625},[1832,1837,1841,1845,1850,1854],{"type":45,"tag":527,"props":1833,"children":1834},{"style":669},[1835],{"type":51,"value":1836},"    name",{"type":45,"tag":527,"props":1838,"children":1839},{"style":540},[1840],{"type":51,"value":677},{"type":45,"tag":527,"props":1842,"children":1843},{"style":540},[1844],{"type":51,"value":564},{"type":45,"tag":527,"props":1846,"children":1847},{"style":567},[1848],{"type":51,"value":1849},"Alice",{"type":45,"tag":527,"props":1851,"children":1852},{"style":540},[1853],{"type":51,"value":1525},{"type":45,"tag":527,"props":1855,"children":1856},{"style":540},[1857],{"type":51,"value":1828},{"type":45,"tag":527,"props":1859,"children":1860},{"class":529,"line":665},[1861,1866,1870],{"type":45,"tag":527,"props":1862,"children":1863},{"style":669},[1864],{"type":51,"value":1865},"    posts",{"type":45,"tag":527,"props":1867,"children":1868},{"style":540},[1869],{"type":51,"value":677},{"type":45,"tag":527,"props":1871,"children":1872},{"style":540},[1873],{"type":51,"value":1799},{"type":45,"tag":527,"props":1875,"children":1876},{"class":529,"line":704},[1877,1882,1886,1890,1895,1899,1903,1908,1912],{"type":45,"tag":527,"props":1878,"children":1879},{"style":669},[1880],{"type":51,"value":1881},"      create",{"type":45,"tag":527,"props":1883,"children":1884},{"style":540},[1885],{"type":51,"value":677},{"type":45,"tag":527,"props":1887,"children":1888},{"style":540},[1889],{"type":51,"value":543},{"type":45,"tag":527,"props":1891,"children":1892},{"style":669},[1893],{"type":51,"value":1894}," title",{"type":45,"tag":527,"props":1896,"children":1897},{"style":540},[1898],{"type":51,"value":677},{"type":45,"tag":527,"props":1900,"children":1901},{"style":540},[1902],{"type":51,"value":564},{"type":45,"tag":527,"props":1904,"children":1905},{"style":567},[1906],{"type":51,"value":1907},"Hello World",{"type":45,"tag":527,"props":1909,"children":1910},{"style":540},[1911],{"type":51,"value":1525},{"type":45,"tag":527,"props":1913,"children":1914},{"style":540},[1915],{"type":51,"value":1530},{"type":45,"tag":527,"props":1917,"children":1918},{"class":529,"line":718},[1919],{"type":45,"tag":527,"props":1920,"children":1921},{"style":540},[1922],{"type":51,"value":1923},"    }\n",{"type":45,"tag":527,"props":1925,"children":1926},{"class":529,"line":726},[1927],{"type":45,"tag":527,"props":1928,"children":1929},{"style":540},[1930],{"type":51,"value":1931},"  },\n",{"type":45,"tag":527,"props":1933,"children":1934},{"class":529,"line":1650},[1935,1940,1944,1948,1953,1957,1963],{"type":45,"tag":527,"props":1936,"children":1937},{"style":669},[1938],{"type":51,"value":1939},"  include",{"type":45,"tag":527,"props":1941,"children":1942},{"style":540},[1943],{"type":51,"value":677},{"type":45,"tag":527,"props":1945,"children":1946},{"style":540},[1947],{"type":51,"value":543},{"type":45,"tag":527,"props":1949,"children":1950},{"style":669},[1951],{"type":51,"value":1952}," posts",{"type":45,"tag":527,"props":1954,"children":1955},{"style":540},[1956],{"type":51,"value":677},{"type":45,"tag":527,"props":1958,"children":1960},{"style":1959},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1961],{"type":51,"value":1962}," true",{"type":45,"tag":527,"props":1964,"children":1965},{"style":540},[1966],{"type":51,"value":1530},{"type":45,"tag":527,"props":1968,"children":1969},{"class":529,"line":1693},[1970,1974],{"type":45,"tag":527,"props":1971,"children":1972},{"style":540},[1973],{"type":51,"value":710},{"type":45,"tag":527,"props":1975,"children":1976},{"style":546},[1977],{"type":51,"value":715},{"type":45,"tag":1413,"props":1979,"children":1981},{"id":1980},"update-records",[1982],{"type":51,"value":1983},"Update records",{"type":45,"tag":517,"props":1985,"children":1987},{"className":519,"code":1986,"language":14,"meta":521,"style":521},"const user = await prisma.user.update({\n  where: { id: 1 },\n  data: { name: 'Alice Smith' }\n})\n",[1988],{"type":45,"tag":172,"props":1989,"children":1990},{"__ignoreMap":521},[1991,2039,2072,2113],{"type":45,"tag":527,"props":1992,"children":1993},{"class":529,"line":530},[1994,1998,2002,2006,2010,2014,2018,2022,2026,2031,2035],{"type":45,"tag":527,"props":1995,"children":1996},{"style":629},[1997],{"type":51,"value":632},{"type":45,"tag":527,"props":1999,"children":2000},{"style":546},[2001],{"type":51,"value":1446},{"type":45,"tag":527,"props":2003,"children":2004},{"style":540},[2005],{"type":51,"value":642},{"type":45,"tag":527,"props":2007,"children":2008},{"style":534},[2009],{"type":51,"value":1455},{"type":45,"tag":527,"props":2011,"children":2012},{"style":546},[2013],{"type":51,"value":1460},{"type":45,"tag":527,"props":2015,"children":2016},{"style":540},[2017],{"type":51,"value":687},{"type":45,"tag":527,"props":2019,"children":2020},{"style":546},[2021],{"type":51,"value":1469},{"type":45,"tag":527,"props":2023,"children":2024},{"style":540},[2025],{"type":51,"value":687},{"type":45,"tag":527,"props":2027,"children":2028},{"style":650},[2029],{"type":51,"value":2030},"update",{"type":45,"tag":527,"props":2032,"children":2033},{"style":546},[2034],{"type":51,"value":657},{"type":45,"tag":527,"props":2036,"children":2037},{"style":540},[2038],{"type":51,"value":662},{"type":45,"tag":527,"props":2040,"children":2041},{"class":529,"line":578},[2042,2046,2050,2054,2059,2063,2068],{"type":45,"tag":527,"props":2043,"children":2044},{"style":669},[2045],{"type":51,"value":1494},{"type":45,"tag":527,"props":2047,"children":2048},{"style":540},[2049],{"type":51,"value":677},{"type":45,"tag":527,"props":2051,"children":2052},{"style":540},[2053],{"type":51,"value":543},{"type":45,"tag":527,"props":2055,"children":2056},{"style":669},[2057],{"type":51,"value":2058}," id",{"type":45,"tag":527,"props":2060,"children":2061},{"style":540},[2062],{"type":51,"value":677},{"type":45,"tag":527,"props":2064,"children":2065},{"style":1706},[2066],{"type":51,"value":2067}," 1",{"type":45,"tag":527,"props":2069,"children":2070},{"style":540},[2071],{"type":51,"value":1647},{"type":45,"tag":527,"props":2073,"children":2074},{"class":529,"line":30},[2075,2079,2083,2087,2092,2096,2100,2105,2109],{"type":45,"tag":527,"props":2076,"children":2077},{"style":669},[2078],{"type":51,"value":1790},{"type":45,"tag":527,"props":2080,"children":2081},{"style":540},[2082],{"type":51,"value":677},{"type":45,"tag":527,"props":2084,"children":2085},{"style":540},[2086],{"type":51,"value":543},{"type":45,"tag":527,"props":2088,"children":2089},{"style":669},[2090],{"type":51,"value":2091}," name",{"type":45,"tag":527,"props":2093,"children":2094},{"style":540},[2095],{"type":51,"value":677},{"type":45,"tag":527,"props":2097,"children":2098},{"style":540},[2099],{"type":51,"value":564},{"type":45,"tag":527,"props":2101,"children":2102},{"style":567},[2103],{"type":51,"value":2104},"Alice Smith",{"type":45,"tag":527,"props":2106,"children":2107},{"style":540},[2108],{"type":51,"value":1525},{"type":45,"tag":527,"props":2110,"children":2111},{"style":540},[2112],{"type":51,"value":1530},{"type":45,"tag":527,"props":2114,"children":2115},{"class":529,"line":625},[2116,2120],{"type":45,"tag":527,"props":2117,"children":2118},{"style":540},[2119],{"type":51,"value":710},{"type":45,"tag":527,"props":2121,"children":2122},{"style":546},[2123],{"type":51,"value":715},{"type":45,"tag":1413,"props":2125,"children":2127},{"id":2126},"delete-records",[2128],{"type":51,"value":2129},"Delete records",{"type":45,"tag":517,"props":2131,"children":2133},{"className":519,"code":2132,"language":14,"meta":521,"style":521},"await prisma.user.delete({\n  where: { id: 1 }\n})\n",[2134],{"type":45,"tag":172,"props":2135,"children":2136},{"__ignoreMap":521},[2137,2174,2205],{"type":45,"tag":527,"props":2138,"children":2139},{"class":529,"line":530},[2140,2145,2149,2153,2157,2161,2166,2170],{"type":45,"tag":527,"props":2141,"children":2142},{"style":534},[2143],{"type":51,"value":2144},"await",{"type":45,"tag":527,"props":2146,"children":2147},{"style":546},[2148],{"type":51,"value":1460},{"type":45,"tag":527,"props":2150,"children":2151},{"style":540},[2152],{"type":51,"value":687},{"type":45,"tag":527,"props":2154,"children":2155},{"style":546},[2156],{"type":51,"value":1469},{"type":45,"tag":527,"props":2158,"children":2159},{"style":540},[2160],{"type":51,"value":687},{"type":45,"tag":527,"props":2162,"children":2163},{"style":650},[2164],{"type":51,"value":2165},"delete",{"type":45,"tag":527,"props":2167,"children":2168},{"style":546},[2169],{"type":51,"value":657},{"type":45,"tag":527,"props":2171,"children":2172},{"style":540},[2173],{"type":51,"value":662},{"type":45,"tag":527,"props":2175,"children":2176},{"class":529,"line":578},[2177,2181,2185,2189,2193,2197,2201],{"type":45,"tag":527,"props":2178,"children":2179},{"style":669},[2180],{"type":51,"value":1494},{"type":45,"tag":527,"props":2182,"children":2183},{"style":540},[2184],{"type":51,"value":677},{"type":45,"tag":527,"props":2186,"children":2187},{"style":540},[2188],{"type":51,"value":543},{"type":45,"tag":527,"props":2190,"children":2191},{"style":669},[2192],{"type":51,"value":2058},{"type":45,"tag":527,"props":2194,"children":2195},{"style":540},[2196],{"type":51,"value":677},{"type":45,"tag":527,"props":2198,"children":2199},{"style":1706},[2200],{"type":51,"value":2067},{"type":45,"tag":527,"props":2202,"children":2203},{"style":540},[2204],{"type":51,"value":1530},{"type":45,"tag":527,"props":2206,"children":2207},{"class":529,"line":30},[2208,2212],{"type":45,"tag":527,"props":2209,"children":2210},{"style":540},[2211],{"type":51,"value":710},{"type":45,"tag":527,"props":2213,"children":2214},{"style":546},[2215],{"type":51,"value":715},{"type":45,"tag":1413,"props":2217,"children":2218},{"id":308},[2219],{"type":51,"value":295},{"type":45,"tag":517,"props":2221,"children":2223},{"className":519,"code":2222,"language":14,"meta":521,"style":521},"const [user, post] = await prisma.$transaction([\n  prisma.user.create({ data: { email: 'alice@prisma.io' } }),\n  prisma.post.create({ data: { title: 'Hello', authorId: 1 } })\n])\n",[2224],{"type":45,"tag":172,"props":2225,"children":2226},{"__ignoreMap":521},[2227,2285,2367,2461],{"type":45,"tag":527,"props":2228,"children":2229},{"class":529,"line":530},[2230,2234,2239,2243,2248,2253,2258,2263,2267,2271,2275,2280],{"type":45,"tag":527,"props":2231,"children":2232},{"style":629},[2233],{"type":51,"value":632},{"type":45,"tag":527,"props":2235,"children":2236},{"style":540},[2237],{"type":51,"value":2238}," [",{"type":45,"tag":527,"props":2240,"children":2241},{"style":546},[2242],{"type":51,"value":1469},{"type":45,"tag":527,"props":2244,"children":2245},{"style":540},[2246],{"type":51,"value":2247},",",{"type":45,"tag":527,"props":2249,"children":2250},{"style":546},[2251],{"type":51,"value":2252}," post",{"type":45,"tag":527,"props":2254,"children":2255},{"style":540},[2256],{"type":51,"value":2257},"]",{"type":45,"tag":527,"props":2259,"children":2260},{"style":540},[2261],{"type":51,"value":2262}," =",{"type":45,"tag":527,"props":2264,"children":2265},{"style":534},[2266],{"type":51,"value":1455},{"type":45,"tag":527,"props":2268,"children":2269},{"style":546},[2270],{"type":51,"value":1460},{"type":45,"tag":527,"props":2272,"children":2273},{"style":540},[2274],{"type":51,"value":687},{"type":45,"tag":527,"props":2276,"children":2277},{"style":650},[2278],{"type":51,"value":2279},"$transaction",{"type":45,"tag":527,"props":2281,"children":2282},{"style":546},[2283],{"type":51,"value":2284},"([\n",{"type":45,"tag":527,"props":2286,"children":2287},{"class":529,"line":578},[2288,2293,2297,2301,2305,2309,2313,2317,2322,2326,2330,2334,2338,2342,2346,2350,2354,2358,2363],{"type":45,"tag":527,"props":2289,"children":2290},{"style":546},[2291],{"type":51,"value":2292},"  prisma",{"type":45,"tag":527,"props":2294,"children":2295},{"style":540},[2296],{"type":51,"value":687},{"type":45,"tag":527,"props":2298,"children":2299},{"style":546},[2300],{"type":51,"value":1469},{"type":45,"tag":527,"props":2302,"children":2303},{"style":540},[2304],{"type":51,"value":687},{"type":45,"tag":527,"props":2306,"children":2307},{"style":650},[2308],{"type":51,"value":1774},{"type":45,"tag":527,"props":2310,"children":2311},{"style":546},[2312],{"type":51,"value":657},{"type":45,"tag":527,"props":2314,"children":2315},{"style":540},[2316],{"type":51,"value":757},{"type":45,"tag":527,"props":2318,"children":2319},{"style":669},[2320],{"type":51,"value":2321}," data",{"type":45,"tag":527,"props":2323,"children":2324},{"style":540},[2325],{"type":51,"value":677},{"type":45,"tag":527,"props":2327,"children":2328},{"style":540},[2329],{"type":51,"value":543},{"type":45,"tag":527,"props":2331,"children":2332},{"style":669},[2333],{"type":51,"value":1507},{"type":45,"tag":527,"props":2335,"children":2336},{"style":540},[2337],{"type":51,"value":677},{"type":45,"tag":527,"props":2339,"children":2340},{"style":540},[2341],{"type":51,"value":564},{"type":45,"tag":527,"props":2343,"children":2344},{"style":567},[2345],{"type":51,"value":1520},{"type":45,"tag":527,"props":2347,"children":2348},{"style":540},[2349],{"type":51,"value":1525},{"type":45,"tag":527,"props":2351,"children":2352},{"style":540},[2353],{"type":51,"value":554},{"type":45,"tag":527,"props":2355,"children":2356},{"style":540},[2357],{"type":51,"value":554},{"type":45,"tag":527,"props":2359,"children":2360},{"style":546},[2361],{"type":51,"value":2362},")",{"type":45,"tag":527,"props":2364,"children":2365},{"style":540},[2366],{"type":51,"value":1828},{"type":45,"tag":527,"props":2368,"children":2369},{"class":529,"line":30},[2370,2374,2378,2383,2387,2391,2395,2399,2403,2407,2411,2415,2419,2423,2428,2432,2436,2441,2445,2449,2453,2457],{"type":45,"tag":527,"props":2371,"children":2372},{"style":546},[2373],{"type":51,"value":2292},{"type":45,"tag":527,"props":2375,"children":2376},{"style":540},[2377],{"type":51,"value":687},{"type":45,"tag":527,"props":2379,"children":2380},{"style":546},[2381],{"type":51,"value":2382},"post",{"type":45,"tag":527,"props":2384,"children":2385},{"style":540},[2386],{"type":51,"value":687},{"type":45,"tag":527,"props":2388,"children":2389},{"style":650},[2390],{"type":51,"value":1774},{"type":45,"tag":527,"props":2392,"children":2393},{"style":546},[2394],{"type":51,"value":657},{"type":45,"tag":527,"props":2396,"children":2397},{"style":540},[2398],{"type":51,"value":757},{"type":45,"tag":527,"props":2400,"children":2401},{"style":669},[2402],{"type":51,"value":2321},{"type":45,"tag":527,"props":2404,"children":2405},{"style":540},[2406],{"type":51,"value":677},{"type":45,"tag":527,"props":2408,"children":2409},{"style":540},[2410],{"type":51,"value":543},{"type":45,"tag":527,"props":2412,"children":2413},{"style":669},[2414],{"type":51,"value":1894},{"type":45,"tag":527,"props":2416,"children":2417},{"style":540},[2418],{"type":51,"value":677},{"type":45,"tag":527,"props":2420,"children":2421},{"style":540},[2422],{"type":51,"value":564},{"type":45,"tag":527,"props":2424,"children":2425},{"style":567},[2426],{"type":51,"value":2427},"Hello",{"type":45,"tag":527,"props":2429,"children":2430},{"style":540},[2431],{"type":51,"value":1525},{"type":45,"tag":527,"props":2433,"children":2434},{"style":540},[2435],{"type":51,"value":2247},{"type":45,"tag":527,"props":2437,"children":2438},{"style":669},[2439],{"type":51,"value":2440}," authorId",{"type":45,"tag":527,"props":2442,"children":2443},{"style":540},[2444],{"type":51,"value":677},{"type":45,"tag":527,"props":2446,"children":2447},{"style":1706},[2448],{"type":51,"value":2067},{"type":45,"tag":527,"props":2450,"children":2451},{"style":540},[2452],{"type":51,"value":554},{"type":45,"tag":527,"props":2454,"children":2455},{"style":540},[2456],{"type":51,"value":554},{"type":45,"tag":527,"props":2458,"children":2459},{"style":546},[2460],{"type":51,"value":715},{"type":45,"tag":527,"props":2462,"children":2463},{"class":529,"line":625},[2464],{"type":45,"tag":527,"props":2465,"children":2466},{"style":546},[2467],{"type":51,"value":2468},"])\n",{"type":45,"tag":60,"props":2470,"children":2472},{"id":2471},"rule-files",[2473],{"type":51,"value":2474},"Rule Files",{"type":45,"tag":54,"props":2476,"children":2477},{},[2478],{"type":51,"value":2479},"Detailed API documentation:",{"type":45,"tag":517,"props":2481,"children":2485},{"className":2482,"code":2484,"language":51},[2483],"language-text","references\u002Fconstructor.md        - PrismaClient constructor options\nreferences\u002Fmodel-queries.md      - CRUD operations\nreferences\u002Fquery-options.md      - select, include, omit, where, orderBy\nreferences\u002Ffilters.md            - Filter conditions and operators\nreferences\u002Frelations.md          - Relation queries and nested operations\nreferences\u002Ftransactions.md       - Transaction API\nreferences\u002Fraw-queries.md        - $queryRaw, $executeRaw\nreferences\u002Fclient-methods.md     - $connect, $disconnect, $on, $extends\n",[2486],{"type":45,"tag":172,"props":2487,"children":2488},{"__ignoreMap":521},[2489],{"type":51,"value":2484},{"type":45,"tag":60,"props":2491,"children":2493},{"id":2492},"filter-operators",[2494],{"type":51,"value":2495},"Filter Operators",{"type":45,"tag":113,"props":2497,"children":2498},{},[2499,2514],{"type":45,"tag":117,"props":2500,"children":2501},{},[2502],{"type":45,"tag":121,"props":2503,"children":2504},{},[2505,2510],{"type":45,"tag":125,"props":2506,"children":2507},{},[2508],{"type":51,"value":2509},"Operator",{"type":45,"tag":125,"props":2511,"children":2512},{},[2513],{"type":51,"value":794},{"type":45,"tag":146,"props":2515,"children":2516},{},[2517,2534,2551,2568,2585,2609,2633,2650,2667,2684],{"type":45,"tag":121,"props":2518,"children":2519},{},[2520,2529],{"type":45,"tag":153,"props":2521,"children":2522},{},[2523],{"type":45,"tag":172,"props":2524,"children":2526},{"className":2525},[],[2527],{"type":51,"value":2528},"equals",{"type":45,"tag":153,"props":2530,"children":2531},{},[2532],{"type":51,"value":2533},"Exact match",{"type":45,"tag":121,"props":2535,"children":2536},{},[2537,2546],{"type":45,"tag":153,"props":2538,"children":2539},{},[2540],{"type":45,"tag":172,"props":2541,"children":2543},{"className":2542},[],[2544],{"type":51,"value":2545},"not",{"type":45,"tag":153,"props":2547,"children":2548},{},[2549],{"type":51,"value":2550},"Not equal",{"type":45,"tag":121,"props":2552,"children":2553},{},[2554,2563],{"type":45,"tag":153,"props":2555,"children":2556},{},[2557],{"type":45,"tag":172,"props":2558,"children":2560},{"className":2559},[],[2561],{"type":51,"value":2562},"in",{"type":45,"tag":153,"props":2564,"children":2565},{},[2566],{"type":51,"value":2567},"In array",{"type":45,"tag":121,"props":2569,"children":2570},{},[2571,2580],{"type":45,"tag":153,"props":2572,"children":2573},{},[2574],{"type":45,"tag":172,"props":2575,"children":2577},{"className":2576},[],[2578],{"type":51,"value":2579},"notIn",{"type":45,"tag":153,"props":2581,"children":2582},{},[2583],{"type":51,"value":2584},"Not in array",{"type":45,"tag":121,"props":2586,"children":2587},{},[2588,2604],{"type":45,"tag":153,"props":2589,"children":2590},{},[2591,2597,2598],{"type":45,"tag":172,"props":2592,"children":2594},{"className":2593},[],[2595],{"type":51,"value":2596},"lt",{"type":51,"value":415},{"type":45,"tag":172,"props":2599,"children":2601},{"className":2600},[],[2602],{"type":51,"value":2603},"lte",{"type":45,"tag":153,"props":2605,"children":2606},{},[2607],{"type":51,"value":2608},"Less than",{"type":45,"tag":121,"props":2610,"children":2611},{},[2612,2628],{"type":45,"tag":153,"props":2613,"children":2614},{},[2615,2621,2622],{"type":45,"tag":172,"props":2616,"children":2618},{"className":2617},[],[2619],{"type":51,"value":2620},"gt",{"type":51,"value":415},{"type":45,"tag":172,"props":2623,"children":2625},{"className":2624},[],[2626],{"type":51,"value":2627},"gte",{"type":45,"tag":153,"props":2629,"children":2630},{},[2631],{"type":51,"value":2632},"Greater than",{"type":45,"tag":121,"props":2634,"children":2635},{},[2636,2645],{"type":45,"tag":153,"props":2637,"children":2638},{},[2639],{"type":45,"tag":172,"props":2640,"children":2642},{"className":2641},[],[2643],{"type":51,"value":2644},"contains",{"type":45,"tag":153,"props":2646,"children":2647},{},[2648],{"type":51,"value":2649},"String contains",{"type":45,"tag":121,"props":2651,"children":2652},{},[2653,2662],{"type":45,"tag":153,"props":2654,"children":2655},{},[2656],{"type":45,"tag":172,"props":2657,"children":2659},{"className":2658},[],[2660],{"type":51,"value":2661},"startsWith",{"type":45,"tag":153,"props":2663,"children":2664},{},[2665],{"type":51,"value":2666},"String starts with",{"type":45,"tag":121,"props":2668,"children":2669},{},[2670,2679],{"type":45,"tag":153,"props":2671,"children":2672},{},[2673],{"type":45,"tag":172,"props":2674,"children":2676},{"className":2675},[],[2677],{"type":51,"value":2678},"endsWith",{"type":45,"tag":153,"props":2680,"children":2681},{},[2682],{"type":51,"value":2683},"String ends with",{"type":45,"tag":121,"props":2685,"children":2686},{},[2687,2696],{"type":45,"tag":153,"props":2688,"children":2689},{},[2690],{"type":45,"tag":172,"props":2691,"children":2693},{"className":2692},[],[2694],{"type":51,"value":2695},"mode",{"type":45,"tag":153,"props":2697,"children":2698},{},[2699],{"type":51,"value":2700},"Case sensitivity",{"type":45,"tag":60,"props":2702,"children":2704},{"id":2703},"relation-filters",[2705],{"type":51,"value":2706},"Relation Filters",{"type":45,"tag":113,"props":2708,"children":2709},{},[2710,2724],{"type":45,"tag":117,"props":2711,"children":2712},{},[2713],{"type":45,"tag":121,"props":2714,"children":2715},{},[2716,2720],{"type":45,"tag":125,"props":2717,"children":2718},{},[2719],{"type":51,"value":2509},{"type":45,"tag":125,"props":2721,"children":2722},{},[2723],{"type":51,"value":794},{"type":45,"tag":146,"props":2725,"children":2726},{},[2727,2744,2761,2778,2795],{"type":45,"tag":121,"props":2728,"children":2729},{},[2730,2739],{"type":45,"tag":153,"props":2731,"children":2732},{},[2733],{"type":45,"tag":172,"props":2734,"children":2736},{"className":2735},[],[2737],{"type":51,"value":2738},"some",{"type":45,"tag":153,"props":2740,"children":2741},{},[2742],{"type":51,"value":2743},"At least one related record matches",{"type":45,"tag":121,"props":2745,"children":2746},{},[2747,2756],{"type":45,"tag":153,"props":2748,"children":2749},{},[2750],{"type":45,"tag":172,"props":2751,"children":2753},{"className":2752},[],[2754],{"type":51,"value":2755},"every",{"type":45,"tag":153,"props":2757,"children":2758},{},[2759],{"type":51,"value":2760},"All related records match",{"type":45,"tag":121,"props":2762,"children":2763},{},[2764,2773],{"type":45,"tag":153,"props":2765,"children":2766},{},[2767],{"type":45,"tag":172,"props":2768,"children":2770},{"className":2769},[],[2771],{"type":51,"value":2772},"none",{"type":45,"tag":153,"props":2774,"children":2775},{},[2776],{"type":51,"value":2777},"No related records match",{"type":45,"tag":121,"props":2779,"children":2780},{},[2781,2790],{"type":45,"tag":153,"props":2782,"children":2783},{},[2784],{"type":45,"tag":172,"props":2785,"children":2787},{"className":2786},[],[2788],{"type":51,"value":2789},"is",{"type":45,"tag":153,"props":2791,"children":2792},{},[2793],{"type":51,"value":2794},"Related record matches (1-to-1)",{"type":45,"tag":121,"props":2796,"children":2797},{},[2798,2807],{"type":45,"tag":153,"props":2799,"children":2800},{},[2801],{"type":45,"tag":172,"props":2802,"children":2804},{"className":2803},[],[2805],{"type":51,"value":2806},"isNot",{"type":45,"tag":153,"props":2808,"children":2809},{},[2810],{"type":51,"value":2811},"Related record doesn't match",{"type":45,"tag":60,"props":2813,"children":2815},{"id":2814},"resources",[2816],{"type":51,"value":2817},"Resources",{"type":45,"tag":72,"props":2819,"children":2820},{},[2821,2832,2842],{"type":45,"tag":76,"props":2822,"children":2823},{},[2824],{"type":45,"tag":2825,"props":2826,"children":2830},"a",{"href":2827,"rel":2828},"https:\u002F\u002Fwww.prisma.io\u002Fdocs\u002Form\u002Freference\u002Fprisma-client-reference",[2829],"nofollow",[2831],{"type":51,"value":52},{"type":45,"tag":76,"props":2833,"children":2834},{},[2835],{"type":45,"tag":2825,"props":2836,"children":2839},{"href":2837,"rel":2838},"https:\u002F\u002Fwww.prisma.io\u002Fdocs\u002Form\u002Fprisma-client\u002Fqueries\u002Fcrud",[2829],[2840],{"type":51,"value":2841},"CRUD Operations",{"type":45,"tag":76,"props":2843,"children":2844},{},[2845],{"type":45,"tag":2825,"props":2846,"children":2849},{"href":2847,"rel":2848},"https:\u002F\u002Fwww.prisma.io\u002Fdocs\u002Form\u002Fprisma-client\u002Fqueries\u002Ffiltering-and-sorting",[2829],[2850],{"type":51,"value":2851},"Filtering and Sorting",{"type":45,"tag":60,"props":2853,"children":2855},{"id":2854},"how-to-use",[2856],{"type":51,"value":2857},"How to Use",{"type":45,"tag":54,"props":2859,"children":2860},{},[2861],{"type":51,"value":2862},"Pick the category from the table above, then open the matching reference file for implementation details and examples.",{"type":45,"tag":2864,"props":2865,"children":2866},"style",{},[2867],{"type":51,"value":2868},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":2870,"total":3038},[2871,2886,2901,2914,2927,2941,2959,2970,2986,2997,3008,3024],{"slug":2872,"name":2872,"fn":2873,"description":2874,"org":2875,"tags":2876,"stars":2883,"repoUrl":2884,"updatedAt":2885},"prisma-next","guide Prisma Next project setup and usage","Route a vague Prisma Next prompt to the right specific skill. Use for \"help me with Prisma Next\", \"what is Prisma Next\", \"explain Prisma Next\", \"I'm new to PN\", \"where do I start\", \"what can I do with Prisma Next\", \"what can I do next with Prisma\", \"just ran createprisma\", \"tour of Prisma Next\", \"Prisma Next overview\", and comparison questions like \"Prisma Next vs Prisma 7\", \"PN vs Drizzle\", \"PN vs Kysely\", \"PN vs TypeORM\". Do NOT use when the prompt clearly matches a workflow skill — adoption \u002F quickstart \u002F first-touch orientation \u002F brownfield introspection, schema \u002F contract editing, migration authoring (db update \u002F migration plan \u002F migrate), migration review on deploy \u002F concurrent migrations, queries \u002F db.orm \u002F db.sql \u002F TypedSQL, Supabase \u002F RLS \u002F role binding, runtime \u002F db.ts \u002F middleware wiring, build \u002F Vite plugin \u002F Next.js plugin, debug \u002F structured error envelopes \u002F PN-* error codes, or feedback \u002F bug report \u002F feature request — load that sibling skill directly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2877,2878,2881,2882],{"name":17,"slug":18,"type":15},{"name":2879,"slug":2880,"type":15},"Next.js","next-js",{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},415,"https:\u002F\u002Fgithub.com\u002Fprisma\u002Fprisma-next","2026-07-17T05:32:04.322957",{"slug":2887,"name":2887,"fn":2888,"description":2889,"org":2890,"tags":2891,"stars":2883,"repoUrl":2884,"updatedAt":2900},"prisma-next-build","integrate Prisma Next into build systems","Wire Prisma Next into the project's build system with the right build-tool plugin — Vite today via @prisma-next\u002Fvite-plugin-contract-emit (Vite 7 \u002F 8); Next.js \u002F Webpack \u002F esbuild \u002F Rollup \u002F Turbopack are named as gaps rather than fabricated. Always offers the Vite plugin proactively when the project is using Vite. Use for vite plugin, vite-plugin, vite.config.ts, prismaVitePlugin, contract emit on save, HMR, hot reload contract, dev server, Next.js plugin, next plugin, withPrismaNext, webpack plugin, esbuild plugin, rollup plugin, build integration, dev server plugin, vite 7, vite 8.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2892,2895,2896,2897],{"name":2893,"slug":2894,"type":15},"Deployment","deployment",{"name":2879,"slug":2880,"type":15},{"name":9,"slug":8,"type":15},{"name":2898,"slug":2899,"type":15},"Vite","vite","2026-07-02T07:31:36.108254",{"slug":2902,"name":2902,"fn":2903,"description":2904,"org":2905,"tags":2906,"stars":2883,"repoUrl":2884,"updatedAt":2913},"prisma-next-contract","edit Prisma Next data contracts and models","Edit the Prisma Next data contract — add models, fields, relations, indexes, enums, value objects (composite types), type aliases, namespaces (Postgres schemas), cross-contract foreign keys (cross-space FK), polymorphic types (`@@discriminator` \u002F `@@base`), use extension namespaces (`pgvector.Vector(...)`, `cipherstash.EncryptedString(...)`), wire `prisma-next.config.ts` with `defineConfig` from the `@prisma-next\u002F\u003Ctarget>\u002Fconfig` façade, and run `prisma-next contract emit`. Use for schema, models, fields, attributes, soft delete, paranoid, scopes, validations, callbacks, prisma schema, PSL, contract.prisma, contract.ts, contract.json, contract.d.ts, `@prisma-next\u002Fpostgres\u002Fconfig`, `@prisma-next\u002Fpostgres\u002Fcontract-builder`, `@prisma-next\u002Fpostgres\u002Fcontrol`, `@prisma-next\u002Fmongo\u002Fconfig`, `@prisma-next\u002Fmongo\u002Fcontract-builder`, `extensions:`, pgvector, cipherstash, postgis, paradedb, supabase, `@prisma-next\u002Fextension-supabase`, `@@control`, control policy, managed, tolerated, external, observed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2907,2910,2911,2912],{"name":2908,"slug":2909,"type":15},"Data Modeling","data-modeling",{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},"2026-07-30T05:30:10.426962",{"slug":2915,"name":2915,"fn":2916,"description":2917,"org":2918,"tags":2919,"stars":2883,"repoUrl":2884,"updatedAt":2926},"prisma-next-debug","debug and recover from Prisma Next errors","Read a Prisma Next structured error envelope and route to the right recovery — code, domain, severity, why, fix, meta. Use for error, exception, my emit failed, my query won't typecheck, my query crashed, my migration won't apply, MIGRATION.HASH_MISMATCH, BUDGET.ROWS_EXCEEDED, BUDGET.TIME_EXCEEDED, RUNTIME.ABORTED, PLAN.HASH_MISMATCH, CONTRACT.MARKER_MISSING, PN-RUN-3001, PN-RUN-3002, PN-RUN-3030, PN-MIG-2001, PN-CLI-4011, PN-SCHEMA-0001, drift, capability missing, planner conflict, prisma studio, EXPLAIN, query log, db.end, db.close, script won't exit, hangs, close connection, pool.end, client is closed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2920,2921,2924,2925],{"name":17,"slug":18,"type":15},{"name":2922,"slug":2923,"type":15},"Debugging","debugging",{"name":2879,"slug":2880,"type":15},{"name":9,"slug":8,"type":15},"2026-07-24T05:37:10.436314",{"slug":2928,"name":2928,"fn":2929,"description":2930,"org":2931,"tags":2932,"stars":2883,"repoUrl":2884,"updatedAt":2940},"prisma-next-feedback","report Prisma Next issues and feedback","Hand a Prisma Next question or report off to the team — file a GitHub issue (bug or feature request), or route Q&A \u002F design discussion \u002F direct-team-contact to the Prisma Discord at pris.ly\u002Fdiscord. Use for bug, bug report, file an issue, report a bug, feature request, missing feature, this should be a feature, file this, this is a bug, this is broken, surprising behaviour, this doesn't work, file feedback, send feedback, capability gap, file via prisma-next-feedback, ask the team, talk to the team, talk to the Prisma team, talk to Prisma, Discord, Prisma Discord, Q&A, design feedback, is this the intended way, how should I do X, extension author question, extension author needs help.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2933,2936,2939],{"name":2934,"slug":2935,"type":15},"Documentation","documentation",{"name":2937,"slug":2938,"type":15},"GitHub","github",{"name":9,"slug":8,"type":15},"2026-07-02T07:31:34.870809",{"slug":2942,"name":2942,"fn":2943,"description":2944,"org":2945,"tags":2946,"stars":2883,"repoUrl":2884,"updatedAt":2958},"prisma-next-migration-review","review and resolve Prisma Next migrations","Review what Prisma Next migrations will run on merge or deploy, render the migration graph, resolve concurrent \u002F diamond-convergence conflicts, and configure environment refs for CI. Use for \"what migrations are going to run\", \"what runs on deploy\", merge conflict, diamond convergence, concurrent migrations, migration status, ref management, staging, production, MIGRATION.DIVERGED, MIGRATION.NO_MARKER, MIGRATION.MARKER_NOT_IN_HISTORY, prisma migrate status, prisma migrate diff, prisma migrate resolve.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2947,2950,2953,2954,2957],{"name":2948,"slug":2949,"type":15},"CI\u002FCD","ci-cd",{"name":2951,"slug":2952,"type":15},"Code Review","code-review",{"name":17,"slug":18,"type":15},{"name":2955,"slug":2956,"type":15},"Migration","migration",{"name":9,"slug":8,"type":15},"2026-07-24T05:37:11.422323",{"slug":2960,"name":2960,"fn":2961,"description":2962,"org":2963,"tags":2964,"stars":2883,"repoUrl":2884,"updatedAt":2969},"prisma-next-migrations","author and manage Prisma Next migrations","Author Prisma Next migrations — choose db update vs migration plan, edit the framework-rendered migration.ts (replace placeholder sentinels with dataTransform closures), recover from MIGRATION.HASH_MISMATCH or PN-MIG-2001 unfilled placeholder. Use for prisma migrate dev, prisma migrate deploy, prisma db push, db update, db update --dry-run, migration plan, migrate, migration new, migration show, db verify, db sign, data migration, this.dataTransform, dataTransform, placeholder, generated migration.ts, edit migration.ts, MIGRATION.HASH_MISMATCH, schema drift.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2965,2966,2967,2968],{"name":17,"slug":18,"type":15},{"name":2955,"slug":2956,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},"2026-07-24T05:37:13.469138",{"slug":2971,"name":2971,"fn":2972,"description":2973,"org":2974,"tags":2975,"stars":2883,"repoUrl":2884,"updatedAt":2985},"prisma-next-queries","write Prisma Next queries for database operations","Write Prisma Next queries for Postgres, SQLite, or Mongo — pick a lane (Postgres\u002FSQLite `db.orm.\u003CModel>` + `db.sql.\u003Ctable>`; Mongo `db.orm.\u003Croot>` + `db.query.from(...)` pipeline builder), filter \u002F project \u002F sort \u002F paginate, eager-load with `.include(...)`, Postgres\u002FSQLite `db.transaction(...)`, Postgres\u002FSQLite ORM `.aggregate(...)`, Mongo aggregations via query builder, namespace-aware accessors (`db.orm.\u003Cns>.\u003CModel>`, `db.sql.\u003Cns>.\u003Ctable>`). Triggers: query, where, match, select, project, orderBy, take, skip, include, lookup, first, all, count, aggregate, group, create, update, delete, upsert, returning, transaction, db.close, script teardown, variant, polymorphism, drizzle-style, kysely-style. Notes: `.all()` is a Thenable (just `await` it), iterators are single-use (`RUNTIME.ITERATOR_CONSUMED`), Postgres `count` is `number` while sum\u002Favg\u002Fmin\u002Fmax are `number | null`, ranges use chained `.where()` or `and(...)` (no `.between(...)`).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2976,2977,2978,2981,2982],{"name":17,"slug":18,"type":15},{"name":2879,"slug":2880,"type":15},{"name":2979,"slug":2980,"type":15},"PostgreSQL","postgresql",{"name":9,"slug":8,"type":15},{"name":2983,"slug":2984,"type":15},"SQL","sql","2026-07-17T05:32:03.35373",{"slug":2987,"name":2987,"fn":2988,"description":2989,"org":2990,"tags":2991,"stars":2883,"repoUrl":2884,"updatedAt":2996},"prisma-next-quickstart","adopt Prisma Next in projects","Adopt Prisma Next into a new project, onto an existing database, or as the first move after a bootstrap tool dropped you into a scaffold. Use for \"what can I do with Prisma Next\", \"what can I do next with Prisma\", \"where do I start\", \"what should I do first\", \"just ran createprisma\", \"createprisma\", \"npx createprisma\", \"npx create-prisma\", \"first steps\", \"first query\", \"I have a scaffolded Prisma Next project what now\"; for `pnpm dlx prisma-next init` greenfield setup; and for `prisma-next contract infer` + `db sign` against an existing database. Also covers the connect-write-read first-arc orientation, the day-to-day commands (`contract emit`, `db init`, `db update`, `migration plan`, `migrate`, `db schema`, `db verify`), and routing to `prisma-next-contract` \u002F `prisma-next-queries` \u002F `prisma-next-runtime` for the next move. Flags: --target, --authoring, --schema-path, --probe-db, --output.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2992,2993,2994,2995],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},"2026-07-24T05:37:12.462072",{"slug":2998,"name":2998,"fn":2999,"description":3000,"org":3001,"tags":3002,"stars":2883,"repoUrl":2884,"updatedAt":3007},"prisma-next-runtime","configure Prisma Next runtime and database connections","Wire the Prisma Next runtime — `db.ts` setup using `postgres\u003CContract>(...)` from `@prisma-next\u002Fpostgres\u002Fruntime`, `sqlite\u003CContract>(...)` from `@prisma-next\u002Fsqlite\u002Fruntime`, or `mongo\u003CContract>(...)` from `@prisma-next\u002Fmongo\u002Fruntime`; middleware composition (telemetry from `@prisma-next\u002Fmiddleware-telemetry`; lints and budgets), `DATABASE_URL` config, per-environment branching, switching between Postgres, SQLite, and Mongo façades. Use for db.ts, postgres(), sqlite(), mongo(), middleware, telemetry, lints, budgets, DATABASE_URL, .env, connection pool, poolOptions, dev vs prod config, transactions, db.transaction, read replicas, multi-database, script won't exit, hangs, close connection, db.end, db.close, pool.end, [Symbol.asyncDispose], await using.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3003,3004,3005,3006],{"name":17,"slug":18,"type":15},{"name":2879,"slug":2880,"type":15},{"name":2979,"slug":2980,"type":15},{"name":9,"slug":8,"type":15},"2026-07-17T05:32:05.347316",{"slug":3009,"name":3009,"fn":3010,"description":3011,"org":3012,"tags":3013,"stars":2883,"repoUrl":2884,"updatedAt":3023},"prisma-next-supabase","integrate Prisma with Supabase","Use Prisma Next with a Supabase project via `@prisma-next\u002Fextension-supabase` — wire `extensions: [supabasePack]`, declare cross-space FKs to `supabase:auth.AuthUser`, author RLS policies (`policy_select` \u002F `policy_update` \u002F `@@rls`, `auth.uid()` predicates), build `db.ts` with the `supabase()` factory, bind roles per request (`asUser(jwt)` \u002F `asAnon()` \u002F `asServiceRole()`), query `auth.*` \u002F `storage.*` via the `db.asServiceRole().supabase` admin root, and validate JWTs (`jwksUrl` for current projects \u002F `jwtSecret` for legacy HS256). Use for supabase, RLS, row level security, policy, role binding, anon, authenticated, service_role, auth.users, auth.uid(), JWT, JWKS, SUPABASE_JWKS_URL, SUPABASE_JWT_SECRET, SUPABASE.JWT_INVALID, SUPABASE.CONFIG_INVALID, RoleBoundDb, session pooler, supabase:auth.AuthUser, @prisma-next\u002Fextension-supabase.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3014,3017,3018,3019,3020],{"name":3015,"slug":3016,"type":15},"Auth","auth",{"name":20,"slug":21,"type":15},{"name":2979,"slug":2980,"type":15},{"name":9,"slug":8,"type":15},{"name":3021,"slug":3022,"type":15},"Supabase","supabase","2026-07-30T05:30:11.065251",{"slug":3025,"name":3025,"fn":3026,"description":3027,"org":3028,"tags":3029,"stars":26,"repoUrl":27,"updatedAt":3037},"prisma-cli","run Prisma CLI commands","Prisma ORM CLI commands reference covering init, generate, migrate, db, dev, studio, validate, format, debug, and mcp. Use for ORM\u002Fdatabase CLI workflows, not Prisma Compute app deployment. For Prisma Compute, `@prisma\u002Fcli app deploy`, `compute:deploy`, `create-prisma --deploy`, apps, deployments, logs, or domains, use the `prisma-compute` skill instead. Triggers on \"prisma init\", \"prisma generate\", \"prisma migrate\", \"prisma db\", \"prisma studio\", \"prisma mcp\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3030,3033,3034,3035,3036],{"name":3031,"slug":3032,"type":15},"CLI","cli",{"name":17,"slug":18,"type":15},{"name":2955,"slug":2956,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:48:29.140467",21,{"items":3040,"total":1650},[3041,3049,3057,3070,3084,3098,3112],{"slug":3025,"name":3025,"fn":3026,"description":3027,"org":3042,"tags":3043,"stars":26,"repoUrl":27,"updatedAt":3037},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3044,3045,3046,3047,3048],{"name":3031,"slug":3032,"type":15},{"name":17,"slug":18,"type":15},{"name":2955,"slug":2956,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":3050,"tags":3051,"stars":26,"repoUrl":27,"updatedAt":28},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3052,3053,3054,3055,3056],{"name":24,"slug":25,"type":15},{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"slug":3058,"name":3058,"fn":3059,"description":3060,"org":3061,"tags":3062,"stars":26,"repoUrl":27,"updatedAt":3069},"prisma-compute","deploy and host Prisma applications","Prisma Compute deployment and hosting guide. Use whenever the user mentions Prisma Compute, `prisma.compute.ts`, `defineComputeConfig`, deploying or hosting a Prisma app, `@prisma\u002Fcli app deploy`, `compute:deploy`, `create-prisma --deploy`, `PRISMA_SERVICE_TOKEN`, `auth workspace`, Compute apps\u002Fdeployments\u002Fbuild logs\u002Fdomains, `@prisma\u002Fcli agent install`, `@prisma\u002Fcli feedback`, localhost vs `0.0.0.0`, deploy port binding, or framework deploy readiness for Hono, Elysia, Next.js, TanStack Start, Astro, Nuxt, Svelte, Nest, Turborepo, or custom\u002Fprebuilt artifacts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3063,3064,3065,3066],{"name":2893,"slug":2894,"type":15},{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":3067,"slug":3068,"type":15},"Serverless","serverless","2026-07-17T05:31:53.370495",{"slug":3071,"name":3071,"fn":3072,"description":3073,"org":3074,"tags":3075,"stars":26,"repoUrl":27,"updatedAt":3083},"prisma-database-setup","configure Prisma with database providers","Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.). Use when setting up a new project, changing databases, or troubleshooting connection issues. Triggers on \"configure postgres\", \"connect to mysql\", \"setup mongodb\", \"sqlite setup\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3076,3077,3080,3081,3082],{"name":17,"slug":18,"type":15},{"name":3078,"slug":3079,"type":15},"MySQL","mysql",{"name":20,"slug":21,"type":15},{"name":2979,"slug":2980,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:48:34.192852",{"slug":3085,"name":3085,"fn":3086,"description":3087,"org":3088,"tags":3089,"stars":26,"repoUrl":27,"updatedAt":3097},"prisma-driver-adapter-implementation","implement Prisma driver adapters","Required reference for Prisma v7 driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter\u002FTransaction interfaces. Contains critical contract details not inferable from code examples — including the transaction lifecycle protocol, error mapping requirements, and verification checklist. Existing implementations do not replace this skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3090,3091,3094,3095,3096],{"name":17,"slug":18,"type":15},{"name":3092,"slug":3093,"type":15},"Engineering","engineering",{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},"2026-04-06T18:48:35.478693",{"slug":3099,"name":3099,"fn":3100,"description":3101,"org":3102,"tags":3103,"stars":26,"repoUrl":27,"updatedAt":3111},"prisma-mongodb-upgrade","migrate Prisma MongoDB projects to v6","Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, when \"upgrade to prisma 7\" comes up in a project with provider = \"mongodb\", or when evaluating a move to Prisma Next. Triggers on \"upgrade prisma mongodb\", \"prisma 7 mongodb\", \"mongodb prisma migration\", \"prisma next mongodb\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3104,3105,3106,3109,3110],{"name":17,"slug":18,"type":15},{"name":2955,"slug":2956,"type":15},{"name":3107,"slug":3108,"type":15},"MongoDB","mongodb",{"name":20,"slug":21,"type":15},{"name":9,"slug":8,"type":15},"2026-07-11T05:35:03.668013",{"slug":3113,"name":3113,"fn":3114,"description":3115,"org":3116,"tags":3117,"stars":26,"repoUrl":27,"updatedAt":3125},"prisma-postgres","manage Prisma Postgres databases","Prisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK. Use when creating Prisma Postgres databases, working in Prisma Console, provisioning with create-db\u002Fcreate-pg\u002Fcreate-postgres, or integrating programmatic provisioning with service tokens or OAuth.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3118,3119,3120,3121,3122],{"name":3031,"slug":3032,"type":15},{"name":17,"slug":18,"type":15},{"name":2979,"slug":2980,"type":15},{"name":9,"slug":8,"type":15},{"name":3123,"slug":3124,"type":15},"SDK","sdk","2026-07-17T05:31:52.398028"]