@m1212e/rumble 0.16.24 → 0.16.27
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/out/index.cjs +3 -2
- package/out/index.cjs.map +1 -1
- package/out/index.d.cts.map +1 -1
- package/out/index.d.mts.map +1 -1
- package/out/index.mjs +4 -3
- package/out/index.mjs.map +1 -1
- package/package.json +1 -1
package/out/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { capitalize, cloneDeep, debounce, merge, toMerged } from "es-toolkit";
|
|
|
9
9
|
import { createPubSub, createYoga } from "graphql-yoga";
|
|
10
10
|
import { useSofa } from "sofa-api";
|
|
11
11
|
import { One, count, relationsFilterToSQL, sql } from "drizzle-orm";
|
|
12
|
-
import { toCamelCase } from "drizzle-orm/casing";
|
|
12
|
+
import { CasingCache, toCamelCase } from "drizzle-orm/casing";
|
|
13
13
|
import { PgEnumColumn, PgTable } from "drizzle-orm/pg-core";
|
|
14
14
|
import pluralize from "pluralize";
|
|
15
15
|
import { MySqlTable } from "drizzle-orm/mysql-core";
|
|
@@ -185,7 +185,7 @@ function mapNullFieldsToUndefined(obj) {
|
|
|
185
185
|
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region package.json
|
|
188
|
-
var version = "0.16.
|
|
188
|
+
var version = "0.16.27";
|
|
189
189
|
|
|
190
190
|
//#endregion
|
|
191
191
|
//#region lib/helpers/mergeFilters.ts
|
|
@@ -438,7 +438,8 @@ const createAbilityBuilder = ({ db, actions, defaultLimit, otel }) => {
|
|
|
438
438
|
return limit ?? void 0;
|
|
439
439
|
});
|
|
440
440
|
const sqlTransformedWhere = lazy(() => {
|
|
441
|
-
|
|
441
|
+
const casing = db._.session?.dialect?.casing ?? new CasingCache();
|
|
442
|
+
return filters?.where ? relationsFilterToSQL(tableSchema.foundRelation.table, filters.where, tableSchema.relations, db._.relations, casing) : void 0;
|
|
442
443
|
});
|
|
443
444
|
if (filters?.columns) return {
|
|
444
445
|
query: {
|