@prisma/orm-toolchain 8.0.0-rc.18-dev.19 → 8.0.0-rc.18-dev.21
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/dist/cli.mjs +9 -14
- package/dist/cli.mjs.map +1 -1
- package/dist/quick-reference-mongo.md +1 -1
- package/package.json +12 -12
|
@@ -104,7 +104,7 @@ The transaction API (`db.transaction(...)`) is on the roadmap and tracked under
|
|
|
104
104
|
The ORM covers the common cases. For the rest, two escape hatches are designed in:
|
|
105
105
|
|
|
106
106
|
- **Typed raw aggregations — `db.query`.** The facade exposes `db.query`, a typed builder for aggregation pipelines that runs through the same runtime + middleware + codec stack as `db.orm`. Reach for it when the ORM can't express a `$lookup`/`$facet`/`$graphLookup`/window-function pipeline.
|
|
107
|
-
- **Direct `mongodb` driver control — `mongoClient` binding.** Construct your own `MongoClient` and pass it to `mongo({ mongoClient, dbName
|
|
107
|
+
- **Direct `mongodb` driver control — `mongoClient` binding.** Construct your own `MongoClient` and pass it to `mongo({ contract, mongoClient, dbName })`. Your code keeps the `MongoClient` reference and uses it directly (transactions, change streams, sessions, anything Prisma ORM doesn't surface yet); the same `db` object continues to give you the typed ORM.
|
|
108
108
|
|
|
109
109
|
`db.runtime()` is **not** the escape hatch — it returns the internal executor (`MongoRuntime`), not a `mongodb` `MongoClient` or `Db`. Use `db.query` for raw aggregations and the `mongoClient` binding for direct driver control.
|
|
110
110
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-toolchain",
|
|
3
|
-
"version": "8.0.0-rc.18-dev.
|
|
3
|
+
"version": "8.0.0-rc.18-dev.21",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-framework": "8.0.0-rc.18-dev.
|
|
12
|
+
"@prisma/orm-framework": "8.0.0-rc.18-dev.21",
|
|
13
13
|
"@vercel/detect-agent": "^1.2.4",
|
|
14
14
|
"arktype": "^2.2.2",
|
|
15
15
|
"c12": "^3.3.4",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"wrap-ansi": "^10.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@internal/cli": "8.0.0-rc.18-dev.
|
|
34
|
-
"@internal/cli-telemetry": "8.0.0-rc.18-dev.
|
|
35
|
-
"@internal/config-loader": "8.0.0-rc.18-dev.
|
|
36
|
-
"@internal/emitter": "8.0.0-rc.18-dev.
|
|
37
|
-
"@internal/language-server": "8.0.0-rc.18-dev.
|
|
38
|
-
"@internal/migration-tools": "8.0.0-rc.18-dev.
|
|
39
|
-
"@internal/publish-surface": "8.0.0-rc.18-dev.
|
|
40
|
-
"@repo/tsconfig": "8.0.0-rc.18-dev.
|
|
41
|
-
"@repo/tsdown": "8.0.0-rc.18-dev.
|
|
42
|
-
"@internal/vite-plugin-contract-emit": "8.0.0-rc.18-dev.
|
|
33
|
+
"@internal/cli": "8.0.0-rc.18-dev.21",
|
|
34
|
+
"@internal/cli-telemetry": "8.0.0-rc.18-dev.21",
|
|
35
|
+
"@internal/config-loader": "8.0.0-rc.18-dev.21",
|
|
36
|
+
"@internal/emitter": "8.0.0-rc.18-dev.21",
|
|
37
|
+
"@internal/language-server": "8.0.0-rc.18-dev.21",
|
|
38
|
+
"@internal/migration-tools": "8.0.0-rc.18-dev.21",
|
|
39
|
+
"@internal/publish-surface": "8.0.0-rc.18-dev.21",
|
|
40
|
+
"@repo/tsconfig": "8.0.0-rc.18-dev.21",
|
|
41
|
+
"@repo/tsdown": "8.0.0-rc.18-dev.21",
|
|
42
|
+
"@internal/vite-plugin-contract-emit": "8.0.0-rc.18-dev.21",
|
|
43
43
|
"tsdown": "0.22.14",
|
|
44
44
|
"typescript": "5.9.3"
|
|
45
45
|
},
|