@dnax/core 0.70.1 → 0.70.2

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.
@@ -24,6 +24,9 @@ export type findParam = {
24
24
  $projectInclude?: {
25
25
  [key: string]: 1 | 0;
26
26
  };
27
+ $sortInclude?: {
28
+ [key: string]: 1 | -1;
29
+ };
27
30
  $matchInclude?: {
28
31
  _id?: string;
29
32
  [key: string]: any;
@@ -139,6 +139,12 @@ function buildPipeline(params: findParam, col?: Collection | undefined | null) {
139
139
  });
140
140
  }
141
141
 
142
+ if (params?.$sortInclude) {
143
+ pipeline.push({
144
+ $sort: params?.$sortInclude,
145
+ });
146
+ }
147
+
142
148
  if (params?.$projectInclude) {
143
149
  pipeline.push({
144
150
  $project: params.$projectInclude,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.70.1",
3
+ "version": "0.70.2",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},