@vantreeseba/drizzle-graphql 15.1.4 → 15.1.6
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.md +60 -14
- package/dist/index.cjs +405 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +405 -125
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1548,8 +1548,15 @@ type SchemaFeatures = {
|
|
|
1548
1548
|
* relation left with no input loses its field.
|
|
1549
1549
|
* - **`onWrite`** — the hooks of the table a nested statement writes fire on the same `tx`,
|
|
1550
1550
|
* with `payload.nested` set. See {@link BuildSchemaConfig.onWrite}.
|
|
1551
|
-
* - **`scope`** and **`contextValues`** — `connect` / `disconnect` / `set`
|
|
1552
|
-
* in-scope rows
|
|
1551
|
+
* - **`scope`**, **`softDelete`** and **`contextValues`** — `connect` / `disconnect` / `set`
|
|
1552
|
+
* reach only in-scope, unmarked rows (a many-to-many `set` keeps the links it cannot
|
|
1553
|
+
* reach), and a nested `create` is stamped like any insert. A relation whose foreign key
|
|
1554
|
+
* is a `contextValues` column is not offered at all.
|
|
1555
|
+
*
|
|
1556
|
+
* A relation's own `where` limits the rows its writes reach the same way, and takes its
|
|
1557
|
+
* `create` away. A relation joining on more than one column per side is not offered. A
|
|
1558
|
+
* to-one `connect` must match exactly one row. When the parent write produces no row, a
|
|
1559
|
+
* parent-side `create` made for it is rolled back.
|
|
1553
1560
|
*
|
|
1554
1561
|
* PostgreSQL and SQLite only. MySQL cannot return the rows it just wrote, which is how a
|
|
1555
1562
|
* nested write learns the parent's key, so `buildSchema` rejects the flag there. On SQLite
|
|
@@ -2136,6 +2143,8 @@ type BuildSchemaConfig = {
|
|
|
2136
2143
|
* - Every insert stamps it, including the rows created by a nested `create`.
|
|
2137
2144
|
* - Updates never write it: an update cannot hand a row to another owner. That includes
|
|
2138
2145
|
* the conflict branch of an upsert, whose `onConflict.update` does not offer it.
|
|
2146
|
+
* - With `nestedWrites`, a relation whose foreign key is such a column gets no nested-write
|
|
2147
|
+
* field, since every nested operation on it would write the column.
|
|
2139
2148
|
* - Keyed by the Drizzle schema key, then by the column's property name (not its database
|
|
2140
2149
|
* name), the same keying {@link BuildSchemaConfig.exclude} uses.
|
|
2141
2150
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1548,8 +1548,15 @@ type SchemaFeatures = {
|
|
|
1548
1548
|
* relation left with no input loses its field.
|
|
1549
1549
|
* - **`onWrite`** — the hooks of the table a nested statement writes fire on the same `tx`,
|
|
1550
1550
|
* with `payload.nested` set. See {@link BuildSchemaConfig.onWrite}.
|
|
1551
|
-
* - **`scope`** and **`contextValues`** — `connect` / `disconnect` / `set`
|
|
1552
|
-
* in-scope rows
|
|
1551
|
+
* - **`scope`**, **`softDelete`** and **`contextValues`** — `connect` / `disconnect` / `set`
|
|
1552
|
+
* reach only in-scope, unmarked rows (a many-to-many `set` keeps the links it cannot
|
|
1553
|
+
* reach), and a nested `create` is stamped like any insert. A relation whose foreign key
|
|
1554
|
+
* is a `contextValues` column is not offered at all.
|
|
1555
|
+
*
|
|
1556
|
+
* A relation's own `where` limits the rows its writes reach the same way, and takes its
|
|
1557
|
+
* `create` away. A relation joining on more than one column per side is not offered. A
|
|
1558
|
+
* to-one `connect` must match exactly one row. When the parent write produces no row, a
|
|
1559
|
+
* parent-side `create` made for it is rolled back.
|
|
1553
1560
|
*
|
|
1554
1561
|
* PostgreSQL and SQLite only. MySQL cannot return the rows it just wrote, which is how a
|
|
1555
1562
|
* nested write learns the parent's key, so `buildSchema` rejects the flag there. On SQLite
|
|
@@ -2136,6 +2143,8 @@ type BuildSchemaConfig = {
|
|
|
2136
2143
|
* - Every insert stamps it, including the rows created by a nested `create`.
|
|
2137
2144
|
* - Updates never write it: an update cannot hand a row to another owner. That includes
|
|
2138
2145
|
* the conflict branch of an upsert, whose `onConflict.update` does not offer it.
|
|
2146
|
+
* - With `nestedWrites`, a relation whose foreign key is such a column gets no nested-write
|
|
2147
|
+
* field, since every nested operation on it would write the column.
|
|
2139
2148
|
* - Keyed by the Drizzle schema key, then by the column's property name (not its database
|
|
2140
2149
|
* name), the same keying {@link BuildSchemaConfig.exclude} uses.
|
|
2141
2150
|
*/
|