prisma-next-queries
Write Prisma Next Queries Across Database Targets
Prisma Next query APIs differ across Postgres, SQLite, and Mongo, which makes correct lane selection difficult. This skill provides target-specific patterns for typed reads, writes, relations, aggregates, pagination, and transactions.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "prisma-next-queries" from https://skillstore.io/skills/prisma-prisma-next-queries.md and its manifest at https://skillstore.io/api/skills/prisma-prisma-next-queries/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "prisma-next-queries". Fetch the newest posts with authors from a Postgres project.
Expected outcome:
Uses the Postgres ORM, includes the author relation, applies descending creation order, limits results, and awaits the collection once.
Using "prisma-next-queries". Count Mongo posts by category for one author.
Expected outcome:
Uses the Mongo query builder with an author match, category grouping, count accumulator, plan construction, and runtime execution.
Using "prisma-next-queries". Create a user and post atomically.
Expected outcome:
Uses one Postgres transaction and its shared context, while noting that the Mongo facade does not support this transaction workflow.
Security Audit
SafeAll 103 static findings are false positives caused by Markdown code notation, fixed relative imports, and Prisma query terminology. No command execution, unsafe filesystem access, system reconnaissance, prompt injection, or malicious intent was found.
Risk Factors
βοΈ External commands (50)
π Filesystem access (6)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/prisma-prisma-next-queries/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/prisma-prisma-next-queries?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/prisma-prisma-next-queries?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/prisma-prisma-next-queries/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/prisma-prisma-next-queries.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA Β· BibTeX Β· CFF)
APA citation
prisma. (2026). prisma-next-queries security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/prisma-prisma-next-queries/audits/1BibTeX citation
@techreport{prisma-prisma-prisma-next-queries-2026,
author = {prisma},
title = {prisma-next-queries security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/prisma-prisma-next-queries/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "prisma-next-queries security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "prisma"
date-released: "2026-08-17"
url: "https://skillstore.io/skills/prisma-prisma-next-queries/audits/1"
identifiers:
- type: other
value: "skillstore:prisma-prisma-next-queries:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Build application queries
Create typed reads, writes, relation includes, and pagination for an application service.
Create database analytics
Build Postgres aggregates or Mongo pipelines with grouping, projection, and joins.
Translate query styles
Convert familiar Prisma, Drizzle, or Kysely patterns into supported Prisma Next APIs.
Try These Prompts
Write a Prisma Next query for [target] that returns [records] filtered by [condition].
Create a [target] query for [model] with [relation], selected fields, stable sorting, and [page size] results.
Build a Prisma Next [Postgres or Mongo] aggregation that groups by [field] and calculates [metrics].
Design a Prisma Next workflow for [operations], using transactions where supported and explaining target limitations.
Best Practices
- Confirm the runtime target before choosing model names, filters, or query lanes.
- Use the ORM for standard CRUD and relations, then use builders for unsupported shapes.
- Apply filters to mutations and consume each asynchronous result only once.
Avoid
- Do not mix Postgres model accessors with Mongo collection accessors.
- Do not use unrestricted reads when a single-row method or bounded page is required.
- Do not invent raw SQL, Mongo transactions, or ORM aggregate APIs that are unavailable.
Frequently Asked Questions
Which databases does this skill cover?
Does it generate data contracts?
When should I use the ORM?
When should I use a lower-level builder?
Does Mongo support transactions through this facade?
How should I consume all query results?
Developer Details
Author
prismaLicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
2b5eb09b8a8d063f44990dafee9dfeaa98332939
Maintenance freshness
8/17/2026
Usage
0 downloads Β· 0 views
File structure