@opra/mongodb 0.33.5 → 0.33.7

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.
@@ -87,7 +87,7 @@ class MongoCollectionService extends mongo_service_js_1.MongoService {
87
87
  const info = {
88
88
  crud: 'read',
89
89
  method: 'count',
90
- byId: true,
90
+ byId: false,
91
91
  options
92
92
  };
93
93
  return this._intercept(async () => {
@@ -208,7 +208,7 @@ class MongoCollectionService extends mongo_service_js_1.MongoService {
208
208
  const info = {
209
209
  crud: 'read',
210
210
  method: 'findById',
211
- byId: false,
211
+ byId: true,
212
212
  documentId: id,
213
213
  options
214
214
  };
@@ -83,7 +83,7 @@ export class MongoCollectionService extends MongoService {
83
83
  const info = {
84
84
  crud: 'read',
85
85
  method: 'count',
86
- byId: true,
86
+ byId: false,
87
87
  options
88
88
  };
89
89
  return this._intercept(async () => {
@@ -204,7 +204,7 @@ export class MongoCollectionService extends MongoService {
204
204
  const info = {
205
205
  crud: 'read',
206
206
  method: 'findById',
207
- byId: false,
207
+ byId: true,
208
208
  documentId: id,
209
209
  options
210
210
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/mongodb",
3
- "version": "0.33.5",
3
+ "version": "0.33.7",
4
4
  "description": "Opra MongoDB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -30,8 +30,8 @@
30
30
  "ts-gems": "^3.1.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@opra/common": "^0.33.5",
34
- "@opra/core": "^0.33.5",
33
+ "@opra/common": "^0.33.7",
34
+ "@opra/core": "^0.33.7",
35
35
  "mongodb": ">=6.x.x"
36
36
  },
37
37
  "type": "module",