feat: add distinct field JSDoc to findMany operation - #29269
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (2)
WalkthroughThis PR adds JSDoc documentation support for the Changes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Updates Prisma Client generator JSDoc metadata so the findMany operation documents the distinct argument (addressing #5509 by improving in-editor discoverability of findMany options).
Changes:
- Adds
distinctto thefindManyJSDocfieldsmap in the TypeScript client generator. - Mirrors the same change in the JavaScript client generator.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/client-generator-ts/src/TSClient/jsdoc.ts | Exposes distinct field documentation for findMany in generated TS client JSDoc. |
| packages/client-generator-js/src/TSClient/jsdoc.ts | Keeps JS generator output aligned by adding the same distinct JSDoc field for findMany. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes #5509
Summary by CodeRabbit
distinctoption for findMany operations in the JavaScript client generatordistinctoption across findMany, findFirst, and findFirstOrThrow operations in the TypeScript client generator