@dnax/core 0.1.3 → 0.1.4

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.
@@ -118,6 +118,10 @@ function buildPipeline(params: findParam, col?: Collection | undefined | null) {
118
118
  createdAt: -1,
119
119
  },
120
120
  });
121
+ } else {
122
+ pipeline.push({
123
+ $sort: params?.$sort,
124
+ });
121
125
  }
122
126
 
123
127
  // sample aleatoire
package/lib/schema.ts CHANGED
@@ -121,7 +121,7 @@ function buildSchema(col: Collection) {
121
121
 
122
122
  if (!f?.validate?.schema) {
123
123
  if (f?.nullable) {
124
- propertySchema[f.name] = propertySchema[f.name];
124
+ propertySchema[f.name] = propertySchema[f.name].optional();
125
125
  } else {
126
126
  propertySchema[f.name] = propertySchema[f.name].required();
127
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {