@ronin/compiler 0.17.22-leo-ron-1140-experimental-434 → 0.17.22-leo-ron-1140-experimental-436
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 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -2204,12 +2204,12 @@ var Transaction = class {
|
|
2204
2204
|
const query2 = {
|
2205
2205
|
[queryType]: { [model.pluralSlug]: instructions }
|
2206
2206
|
};
|
2207
|
-
return { query: query2, index,
|
2207
|
+
return { query: query2, index, expansion: true };
|
2208
2208
|
});
|
2209
2209
|
}
|
2210
2210
|
return { query, index };
|
2211
2211
|
});
|
2212
|
-
for (const { query, index,
|
2212
|
+
for (const { query, index, expansion } of expandedQueries) {
|
2213
2213
|
const { dependencies, main, selectedFields, model, updatedQuery } = compileQueryInput(
|
2214
2214
|
query,
|
2215
2215
|
modelsWithPresets,
|
@@ -2223,7 +2223,7 @@ var Transaction = class {
|
|
2223
2223
|
this.statements.push(...subStatements);
|
2224
2224
|
this.#internalQueries[index].selectedFields.push(selectedFields);
|
2225
2225
|
this.#internalQueries[index].models.push(model);
|
2226
|
-
if (!
|
2226
|
+
if (!expansion) this.#internalQueries[index].query = updatedQuery;
|
2227
2227
|
}
|
2228
2228
|
this.models = modelsWithPresets;
|
2229
2229
|
return statements;
|
package/package.json
CHANGED