@ronin/compiler 0.17.21-leo-pagination-bug-experimental-429 → 0.17.22-leo-ron-1140-experimental-430
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 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1807,6 +1807,9 @@ var transformMetaQuery = (models, dependencyStatements, statementParams, query,
|
|
1807
1807
|
if ("alter" in query.alter && query.alter.alter) jsonValue = query.alter.alter.to;
|
1808
1808
|
}
|
1809
1809
|
}
|
1810
|
+
if ("get" in query && query.get && slug) {
|
1811
|
+
return { get: { model: { with: { slug } } } };
|
1812
|
+
}
|
1810
1813
|
if (!(modelSlug && slug)) return query;
|
1811
1814
|
const model = action === "create" && entity === "model" ? null : getModelBySlug(models, modelSlug);
|
1812
1815
|
if (entity === "model") {
|
package/package.json
CHANGED