pangea-server 1.0.25 → 1.0.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.
@@ -209,7 +209,7 @@ function getIncludeAndWhere(model, includeItems, where, relDepth = new Map(), pa
209
209
  console.log(`----- Model: ${model.name} -----`);
210
210
  for (const [relName, rel] of Object.entries(model.Relations)) {
211
211
  const relKey = `${parentKey}->${relName}`;
212
- console.log(`----- Model: ${relKey} -----`);
212
+ console.log(`----- relKey: ${relKey} -----`);
213
213
  const currentDepth = relDepth.get(relKey) || 0;
214
214
  const maxDepth = rel.joinDepth;
215
215
  if (currentDepth >= maxDepth)
@@ -223,6 +223,8 @@ function getIncludeAndWhere(model, includeItems, where, relDepth = new Map(), pa
223
223
  newRelDepth.set(relKey, currentDepth + 1);
224
224
  const relModel = rel.getModelFn();
225
225
  console.log(`----- relModel: ${relModel.name} -----`);
226
+ console.log('----- getIncludeAndWhere -----');
227
+ console.log(getIncludeAndWhere(relModel, nestedIncludeItems, relWhere, newRelDepth, relKey));
226
228
  includeOptions.push({
227
229
  model: relModel,
228
230
  as: relName,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "1.0.25",
4
+ "version": "1.0.27",
5
5
  "files": [
6
6
  "dist"
7
7
  ],