prisma-client-api

Reference Prisma Client API for model queries, filters, relations, and transactions.

1|2|Updated Aug 14, 2026
One-click install
npx skills add https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2 --skill prisma-client-api-byeduarda
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-client-api
Source: https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2/tree/main/back/src/.windsurf/skills/prisma-client-api
Command: npx skills add https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2 --skill prisma-client-api-byeduarda

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing correct Prisma Client queries requires knowing dozens of methods, filter operators, relation patterns, and transaction options. This Skill provides a structured API reference so you can write accurate database queries without guessing syntax or digging through external documentation. ## Core Features & Use Cases - Model Query Reference: Covers all CRUD methods including findUnique, findMany, create, update, upsert, delete, count, aggregate, and groupBy with return types. - Filtering and Relations: Documents scalar operators, logical operators (AND, OR, NOT), relation filters (some, every, none, is), and nested writes. - Transactions and Raw SQL: Explains sequential and interactive $transaction patterns, isolation levels, and safe $queryRaw/$executeRaw usage with SQL injection prevention. - Use Case: When building an Express endpoint that paginates users filtered by role, consult the query-options and filters references to compose the correct where, orderBy, take, and skip clauses. ## Quick Start Ask the AI to write a Prisma query that finds all published posts with their authors, ordered by creation date and limited to ten results.

Frequently Asked Questions about prisma-client-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I filter records with Prisma Client where clauses?▼

Use the where option with operators like equals, contains, gt, lt, in, and logical combinators AND, OR, NOT. For relations, apply some, every, or none filters to match related records.

How to paginate results with Prisma findMany?▼

Use take and skip for offset pagination, or cursor with take for cursor-based pagination. Combine with orderBy to guarantee stable ordering across pages.

What is the difference between sequential and interactive transactions in Prisma?▼

Sequential transactions pass an array of operations to $transaction and run them in order. Interactive transactions use an async callback with a tx client, allowing dependent operations and conditional logic with configurable isolation levels.

Does Prisma Client support raw SQL queries safely?▼

Yes, $queryRaw and $executeRaw use tagged templates that parameterize values automatically, preventing SQL injection. Avoid $queryRawUnsafe with string concatenation, and use Prisma.sql or Prisma.join for dynamic fragments.

When should I use select versus include in Prisma queries?▼

Use select to return only specific scalar fields, and include to load related records. Both support nesting, but select and omit cannot be combined in the same query.