@ronin/compiler 0.17.19-corny-pagination-bug-experimental-412 → 0.17.19-corny-pagination-bug-experimental-414

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -427,7 +427,8 @@ var handleSelecting = (models, model, statementParams, single, instructions, que
427
427
  subSingle,
428
428
  {
429
429
  selecting: queryInstructions?.selecting,
430
- including: queryInstructions?.including
430
+ including: queryInstructions?.including,
431
+ limitedTo: instructions.limitedTo
431
432
  },
432
433
  queryType2,
433
434
  { ...options, mountingPath: subMountingPath }
@@ -452,7 +453,7 @@ var handleSelecting = (models, model, statementParams, single, instructions, que
452
453
  });
453
454
  }
454
455
  }
455
- if (queryType === "get" && !single && !selectedFields.some((field) => field.slug === "ronin.createdAt")) {
456
+ if (queryType === "get" && !single && !selectedFields.some((field) => field.slug === "ronin.createdAt") && instructions.limitedTo) {
456
457
  selectedFields.push({
457
458
  ...getSystemFields(model.idPrefix)["ronin.createdAt"],
458
459
  slug: "ronin.createdAt",
@@ -1102,7 +1103,8 @@ var compileQueryInput = (defaultQuery, models, statementParams, options) => {
1102
1103
  single,
1103
1104
  {
1104
1105
  selecting: instructions?.selecting,
1105
- including: instructions?.including
1106
+ including: instructions?.including,
1107
+ limitedTo: instructions?.limitedTo
1106
1108
  },
1107
1109
  queryType,
1108
1110
  // biome-ignore lint/complexity/useSimplifiedLogicExpression: This is needed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.17.19-corny-pagination-bug-experimental-412",
3
+ "version": "0.17.19-corny-pagination-bug-experimental-414",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {