@querykitjs/prisma-pg 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +10 -0
- package/README.md +10 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/skills/querykit-prisma-pg/SKILL.md +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@querykitjs/prisma-pg",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Advanced filtering + flexible pagination repository layer for Prisma (PostgreSQL).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"test:smoke": "bun run test/smoke.ts"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@querykitjs/core": "^2.
|
|
61
|
+
"@querykitjs/core": "^2.1.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@prisma/client": "^6.19 || ^7.10"
|
|
@@ -178,6 +178,7 @@ The same JSON shape as every querykit package (`@querykitjs/core`): conditions `
|
|
|
178
178
|
|
|
179
179
|
## Mistakes to avoid
|
|
180
180
|
|
|
181
|
+
- Relying on an index on `(col)` alone for `findList` or `findInfinite`: they end the order on the primary key, so a large table needs a compound index on `(col, primary key)`. The key does not count against `maxSortFields`; `findAll` and `findOne` do not add it.
|
|
181
182
|
- An unescaped `_` in `like` / `ilike`: Prisma has no one-character wildcard, so it is `invalid-value`. Write `\\_` for a literal underscore.
|
|
182
183
|
- Using the database column name (`created_at`) as a key: keys are Prisma field names (`createdAt`).
|
|
183
184
|
- Using a text operator on a non-`String` field: it is skipped as `invalid-value`.
|