@ronin/compiler 0.17.19-corny-pagination-bug-experimental-412 → 0.17.19-corny-pagination-bug-experimental-413
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/index.js +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",
|
package/package.json
CHANGED