Repository navigation
Use sort(field, direction) for MongoDB PSL indexes - #30636
Conversation
Signed-off-by: Steven McClankerton <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughMongoDB index declarations now specify sort direction with ChangesMongoDB index sort syntax
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change documents how to update MongoDB index sort syntax, with no merge-blocking risk identified. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 5 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 11 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
@prisma/orm-extension-arktype-json
@prisma/orm-extension-middleware-cache
@prisma/orm-extension-paradedb
@prisma/orm-extension-pgvector
@prisma/orm-extension-postgis
@prisma/orm-extension-supabase
@prisma/orm-family-mongo
@prisma/orm-family-sql
@prisma/orm-framework
@prisma/orm-mongo
@prisma/orm-postgres
@prisma/orm-sqlite
@prisma/orm-target-mongo
@prisma/orm-target-postgres
@prisma/orm-target-sqlite
@prisma/orm-toolchain
commit: |
size-limit report 📦
|
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Signed-off-by: Steven McClankerton <[email protected]>
Assemble their upgrade notes into the rc.16 to rc.17 guides, archive the originals, and add both PRs to the release notes and CHANGELOG. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Replaces MongoDB PSL
field(sort: Asc | Desc)withsort(field, Asc | Desc), preserving existing index behavior.Changes
@@index,@@unique, and@@textIndex, with model-aware field validation and completion.Why
A stable function name makes the field an explicit argument instead of generating a function signature for every model field.
Scope: MongoDB syntax only. Plain fields and wildcard syntax remain supported. The old syntax is rejected; null-ordering options are not added. SQL syntax is unchanged.
Validation
Summary by CodeRabbit
sort(field, Asc)andsort(field, Desc), with editor suggestions for fields and sort directions.