@bedrockio/model 0.1.26 → 0.1.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.
@@ -44,6 +44,11 @@ function applyInclude(schema) {
44
44
  }
45
45
  return next();
46
46
  });
47
+ schema.pre(/^count/, function (next) {
48
+ const filter = this.getFilter();
49
+ delete filter.include;
50
+ return next();
51
+ });
47
52
 
48
53
  // Static Methods
49
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrockio/model",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "Bedrock utilities for model creation.",
5
5
  "type": "module",
6
6
  "scripts": {
package/src/include.js CHANGED
@@ -39,6 +39,12 @@ export function applyInclude(schema) {
39
39
  return next();
40
40
  });
41
41
 
42
+ schema.pre(/^count/, function (next) {
43
+ const filter = this.getFilter();
44
+ delete filter.include;
45
+ return next();
46
+ });
47
+
42
48
  // Static Methods
43
49
 
44
50
  // Async method runs the create first then calls into
@@ -1 +1 @@
1
- {"version":3,"file":"include.d.ts","sourceRoot":"","sources":["../src/include.js"],"names":[],"mappings":"AA2BA,gDAiEC;AAMD,uDA4BC;AAGD,2DAIC;AAjHD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKG"}
1
+ {"version":3,"file":"include.d.ts","sourceRoot":"","sources":["../src/include.js"],"names":[],"mappings":"AA2BA,gDAuEC;AAMD,uDA4BC;AAGD,2DAIC;AAvHD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKG"}