@livequery/mongoose 2.0.20 → 2.0.21

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.
@@ -326,7 +326,7 @@ export class MongoQuery {
326
326
  summary: mappers.length == 0 ? 1 : mappers.reduce((p, c) => {
327
327
  return {
328
328
  ...p,
329
- [c.name]: `$summary.${c.group_id}.${c.id}`
329
+ [c.name]: { $arrayElemAt: [`$summary.${c.group_id}.${c.id}`, 0] }
330
330
  };
331
331
  }, {}),
332
332
  items: {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "repository": {
7
7
  "url": "git@github.com:livequery/mongoose.git"
8
8
  },
9
- "version": "2.0.20",
9
+ "version": "2.0.21",
10
10
  "description": "Mongoose datasource mapping for @livequery ecosystem",
11
11
  "main": "./build/src/index.js",
12
12
  "types": "./build/src/index.d.ts",