@orion-js/mongodb 3.2.3 → 3.2.14
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.
- package/lib/createCollection/getMethods/countDocuments.d.ts +3 -0
- package/lib/createCollection/getMethods/countDocuments.js +14 -0
- package/lib/createCollection/getMethods/countDocuments.test.d.ts +1 -0
- package/lib/createCollection/getMethods/countDocuments.test.js +21 -0
- package/lib/createCollection/getMethods/estimatedDocumentCount.d.ts +3 -0
- package/lib/createCollection/getMethods/estimatedDocumentCount.js +9 -0
- package/lib/createCollection/getMethods/estimatedDocumentCount.test.d.ts +1 -0
- package/lib/createCollection/getMethods/estimatedDocumentCount.test.js +15 -0
- package/lib/createCollection/getMethods/index.d.ts +3 -1
- package/lib/createCollection/getMethods/index.js +5 -1
- package/lib/createCollection/getMethods/insertMany.test.js +1 -1
- package/lib/createCollection/getMethods/insertOne.test.js +1 -1
- package/lib/createCollection/index.js +3 -0
- package/lib/createCollection/typedModel.test.js +29 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/service/index.d.ts +3 -0
- package/lib/service/index.js +32 -0
- package/lib/service/index.test.d.ts +1 -0
- package/lib/service/index.test.js +68 -0
- package/lib/types/index.d.ts +14 -3
- package/package.json +4 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const getSelector_1 = __importDefault(require("./getSelector"));
|
|
7
|
+
exports.default = (collection) => {
|
|
8
|
+
const func = async function (selectorArg, options) {
|
|
9
|
+
const selector = (0, getSelector_1.default)(arguments);
|
|
10
|
+
const result = await collection.rawCollection.countDocuments(selector, options);
|
|
11
|
+
return result;
|
|
12
|
+
};
|
|
13
|
+
return func;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const helpers_1 = require("@orion-js/helpers");
|
|
7
|
+
const __1 = __importDefault(require(".."));
|
|
8
|
+
describe('countDocuments operation', () => {
|
|
9
|
+
it('should count all documents', async () => {
|
|
10
|
+
const Tests = (0, __1.default)({ name: (0, helpers_1.generateId)() });
|
|
11
|
+
await Tests.insertMany([{ hello: 'world' }, { hello: 'world' }]);
|
|
12
|
+
const count = await Tests.countDocuments({});
|
|
13
|
+
expect(count).toBe(2);
|
|
14
|
+
});
|
|
15
|
+
it('should count filtering documents', async () => {
|
|
16
|
+
const Tests = (0, __1.default)({ name: (0, helpers_1.generateId)() });
|
|
17
|
+
await Tests.insertMany([{ name: '1' }, { name: '2' }]);
|
|
18
|
+
const count = await Tests.countDocuments({ name: '1' });
|
|
19
|
+
expect(count).toBe(1);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = (collection) => {
|
|
4
|
+
const func = async function (options) {
|
|
5
|
+
const result = await collection.rawCollection.estimatedDocumentCount(options);
|
|
6
|
+
return result;
|
|
7
|
+
};
|
|
8
|
+
return func;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const helpers_1 = require("@orion-js/helpers");
|
|
7
|
+
const __1 = __importDefault(require(".."));
|
|
8
|
+
describe('estimatedDocumentCount operation', () => {
|
|
9
|
+
it('should count all documents', async () => {
|
|
10
|
+
const Tests = (0, __1.default)({ name: (0, helpers_1.generateId)() });
|
|
11
|
+
await Tests.insertMany([{ hello: 'world' }, { hello: 'world' }]);
|
|
12
|
+
const count = await Tests.estimatedDocumentCount();
|
|
13
|
+
expect(count).toBe(2);
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -10,4 +10,6 @@ import deleteMany from './deleteMany';
|
|
|
10
10
|
import insertOne from './insertOne';
|
|
11
11
|
import insertMany from './insertMany';
|
|
12
12
|
import updateItem from './updateItem';
|
|
13
|
-
|
|
13
|
+
import countDocuments from './countDocuments';
|
|
14
|
+
import estimatedDocumentCount from './estimatedDocumentCount';
|
|
15
|
+
export { findOne, find, findOneAndUpdate, insertOne, insertMany, updateOne, updateMany, updateAndFind, updateItem, deleteOne, deleteMany, upsert, estimatedDocumentCount, countDocuments };
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.upsert = exports.deleteMany = exports.deleteOne = exports.updateItem = exports.updateAndFind = exports.updateMany = exports.updateOne = exports.insertMany = exports.insertOne = exports.findOneAndUpdate = exports.find = exports.findOne = void 0;
|
|
6
|
+
exports.countDocuments = exports.estimatedDocumentCount = exports.upsert = exports.deleteMany = exports.deleteOne = exports.updateItem = exports.updateAndFind = exports.updateMany = exports.updateOne = exports.insertMany = exports.insertOne = exports.findOneAndUpdate = exports.find = exports.findOne = void 0;
|
|
7
7
|
const find_1 = __importDefault(require("./find"));
|
|
8
8
|
exports.find = find_1.default;
|
|
9
9
|
const findOne_1 = __importDefault(require("./findOne"));
|
|
@@ -28,3 +28,7 @@ const insertMany_1 = __importDefault(require("./insertMany"));
|
|
|
28
28
|
exports.insertMany = insertMany_1.default;
|
|
29
29
|
const updateItem_1 = __importDefault(require("./updateItem"));
|
|
30
30
|
exports.updateItem = updateItem_1.default;
|
|
31
|
+
const countDocuments_1 = __importDefault(require("./countDocuments"));
|
|
32
|
+
exports.countDocuments = countDocuments_1.default;
|
|
33
|
+
const estimatedDocumentCount_1 = __importDefault(require("./estimatedDocumentCount"));
|
|
34
|
+
exports.estimatedDocumentCount = estimatedDocumentCount_1.default;
|
|
@@ -15,7 +15,7 @@ it('should return a function', async () => {
|
|
|
15
15
|
it('insert documents without errors', async () => {
|
|
16
16
|
const Tests = (0, __1.default)({ name: (0, helpers_1.generateId)() });
|
|
17
17
|
await Tests.insertMany([{ hello: 'world' }, { hello: 'world' }]);
|
|
18
|
-
const count = await Tests.
|
|
18
|
+
const count = await Tests.estimatedDocumentCount();
|
|
19
19
|
expect(count).toBe(2);
|
|
20
20
|
});
|
|
21
21
|
it('should throw an error when no document is passed', async () => {
|
|
@@ -16,7 +16,7 @@ describe('InsertOne', () => {
|
|
|
16
16
|
it('insertOnes a document without errors', async () => {
|
|
17
17
|
const Tests = (0, __1.default)({ name: (0, helpers_1.generateId)() });
|
|
18
18
|
await Tests.insertOne({ hello: 'world' });
|
|
19
|
-
const count = await Tests.
|
|
19
|
+
const count = await Tests.estimatedDocumentCount();
|
|
20
20
|
expect(count).toBe(1);
|
|
21
21
|
});
|
|
22
22
|
it('should insertOne documents passing deep validation', async () => {
|
|
@@ -54,6 +54,9 @@ const createCollection = (options) => {
|
|
|
54
54
|
collection.deleteMany = (0, getMethods_1.deleteMany)(collection);
|
|
55
55
|
collection.deleteOne = (0, getMethods_1.deleteOne)(collection);
|
|
56
56
|
collection.upsert = (0, getMethods_1.upsert)(collection);
|
|
57
|
+
// counts
|
|
58
|
+
collection.estimatedDocumentCount = (0, getMethods_1.estimatedDocumentCount)(collection);
|
|
59
|
+
collection.countDocuments = (0, getMethods_1.countDocuments)(collection);
|
|
57
60
|
// update and find
|
|
58
61
|
collection.updateAndFind = (0, getMethods_1.updateAndFind)(collection);
|
|
59
62
|
collection.updateItem = (0, getMethods_1.updateItem)(collection);
|
|
@@ -70,4 +70,33 @@ describe('Collections with typed model', () => {
|
|
|
70
70
|
const title = await person.title({ title: 'Mr.' });
|
|
71
71
|
expect(title).toBe('Mr. John Doe');
|
|
72
72
|
});
|
|
73
|
+
it('Should allow passing _id on insert', async () => {
|
|
74
|
+
let PersonOptionalId = class PersonOptionalId {
|
|
75
|
+
};
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typed_model_1.Prop)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], PersonOptionalId.prototype, "_id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typed_model_1.Prop)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], PersonOptionalId.prototype, "firstName", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typed_model_1.Prop)({ optional: true }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], PersonOptionalId.prototype, "lastName", void 0);
|
|
88
|
+
PersonOptionalId = __decorate([
|
|
89
|
+
(0, typed_model_1.TypedSchema)()
|
|
90
|
+
], PersonOptionalId);
|
|
91
|
+
const Persons = (0, _1.default)({
|
|
92
|
+
name: (0, helpers_1.generateId)(),
|
|
93
|
+
model: PersonOptionalId
|
|
94
|
+
});
|
|
95
|
+
await Persons.insertOne({
|
|
96
|
+
_id: '1',
|
|
97
|
+
firstName: 'John'
|
|
98
|
+
});
|
|
99
|
+
const person = await Persons.findOne('1');
|
|
100
|
+
expect(person.firstName).toBe('John');
|
|
101
|
+
});
|
|
73
102
|
});
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -32,3 +32,4 @@ exports.createCollection = createCollection_1.default;
|
|
|
32
32
|
Object.defineProperty(exports, "createIndexesPromises", { enumerable: true, get: function () { return createCollection_1.createIndexesPromises; } });
|
|
33
33
|
__exportStar(require("./connect"), exports);
|
|
34
34
|
__exportStar(require("./types"), exports);
|
|
35
|
+
__exportStar(require("./service"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Repository = exports.MongoCollection = void 0;
|
|
7
|
+
const services_1 = require("@orion-js/services");
|
|
8
|
+
const createCollection_1 = __importDefault(require("../createCollection"));
|
|
9
|
+
function MongoCollection(options) {
|
|
10
|
+
return function (object, propertyName, index) {
|
|
11
|
+
services_1.Container.registerHandler({
|
|
12
|
+
object,
|
|
13
|
+
propertyName,
|
|
14
|
+
index,
|
|
15
|
+
value: containerInstance => {
|
|
16
|
+
if (!object.serviceType || object.serviceType !== 'repo') {
|
|
17
|
+
throw new Error('You must pass a class decorated with @Repository if you want to use @MongoCollection');
|
|
18
|
+
}
|
|
19
|
+
return (0, createCollection_1.default)(options);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
exports.MongoCollection = MongoCollection;
|
|
25
|
+
function Repository() {
|
|
26
|
+
return function (target) {
|
|
27
|
+
(0, services_1.Service)()(target);
|
|
28
|
+
target.prototype.service = target;
|
|
29
|
+
target.prototype.serviceType = 'repo';
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.Repository = Repository;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const services_1 = require("@orion-js/services");
|
|
13
|
+
const typed_model_1 = require("@orion-js/typed-model");
|
|
14
|
+
const _1 = require(".");
|
|
15
|
+
describe('Collection as IOC', () => {
|
|
16
|
+
it('should create the collection and set the methods', async () => {
|
|
17
|
+
let User = class User {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typed_model_1.Prop)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], User.prototype, "_id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typed_model_1.Prop)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], User.prototype, "name", void 0);
|
|
27
|
+
User = __decorate([
|
|
28
|
+
(0, typed_model_1.TypedSchema)()
|
|
29
|
+
], User);
|
|
30
|
+
let UserRepo = class UserRepo {
|
|
31
|
+
async createUser(user) {
|
|
32
|
+
return await this.users.insertOne(user);
|
|
33
|
+
}
|
|
34
|
+
async getUserByName(name) {
|
|
35
|
+
return await this.users.findOne({ name });
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, _1.MongoCollection)({ name: 'users' }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], UserRepo.prototype, "users", void 0);
|
|
42
|
+
UserRepo = __decorate([
|
|
43
|
+
(0, _1.Repository)()
|
|
44
|
+
], UserRepo);
|
|
45
|
+
const instance = (0, services_1.getInstance)(UserRepo);
|
|
46
|
+
const userId = await instance.createUser({ name: 'Nico' });
|
|
47
|
+
const user = await instance.getUserByName('Nico');
|
|
48
|
+
expect(user._id).toBe(userId);
|
|
49
|
+
});
|
|
50
|
+
it('should throw an error when trying to set a collection param in a service that is not a repo', () => {
|
|
51
|
+
expect.assertions(1);
|
|
52
|
+
try {
|
|
53
|
+
let UserErrorRepo = class UserErrorRepo {
|
|
54
|
+
};
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, _1.MongoCollection)({ name: 'users2' }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], UserErrorRepo.prototype, "users", void 0);
|
|
59
|
+
UserErrorRepo = __decorate([
|
|
60
|
+
(0, services_1.Service)()
|
|
61
|
+
], UserErrorRepo);
|
|
62
|
+
const instance = (0, services_1.getInstance)(UserErrorRepo);
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
expect(error.message).toBe('You must pass a class decorated with @Repository if you want to use @MongoCollection');
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
});
|
package/lib/types/index.d.ts
CHANGED
|
@@ -2,20 +2,27 @@ import * as MongoDB from 'mongodb';
|
|
|
2
2
|
import { Model } from '@orion-js/models';
|
|
3
3
|
import { Schema } from '@orion-js/schema';
|
|
4
4
|
import { OrionMongoClient } from '../connect/connections';
|
|
5
|
+
declare type RemoveFunctions<T> = OmitByValue<T, Function>;
|
|
5
6
|
export declare type DocumentWithId<T> = T & {
|
|
6
7
|
/**
|
|
7
8
|
* The ID of the document
|
|
8
9
|
*/
|
|
9
10
|
_id: string;
|
|
10
11
|
};
|
|
12
|
+
export declare type DocumentWithIdOptional<T> = Omit<T, '_id'> & {
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the document
|
|
15
|
+
*/
|
|
16
|
+
_id?: string;
|
|
17
|
+
};
|
|
11
18
|
export declare type DocumentWithoutId<T> = Omit<T, '_id'>;
|
|
12
19
|
declare type OmitByValue<T, ValueType> = Pick<T, {
|
|
13
20
|
[Key in keyof T]-?: T[Key] extends ValueType ? never : Key;
|
|
14
21
|
}[keyof T]>;
|
|
15
|
-
declare type RemoveFunctions<T> = OmitByValue<T, Function>;
|
|
16
22
|
export declare type ModelToDocumentType<ModelClass> = RemoveFunctions<ModelClass>;
|
|
17
23
|
export declare type ModelToDocumentTypeWithId<ModelClass> = DocumentWithId<RemoveFunctions<ModelClass>>;
|
|
18
24
|
export declare type ModelToDocumentTypeWithoutId<ModelClass> = DocumentWithoutId<ModelToDocumentType<ModelClass>>;
|
|
25
|
+
export declare type ModelToDocumentTypeWithIdOptional<ModelClass> = DocumentWithIdOptional<ModelToDocumentType<ModelClass>>;
|
|
19
26
|
export declare type ModelToMongoSelector<ModelClass> = MongoSelector<ModelToDocumentType<ModelClass>>;
|
|
20
27
|
export declare type ModelToUpdateFilter<ModelClass> = MongoDB.UpdateFilter<ModelToDocumentTypeWithoutId<ModelClass>> | Partial<ModelToDocumentTypeWithoutId<ModelClass>>;
|
|
21
28
|
export interface CollectionIndex {
|
|
@@ -72,8 +79,8 @@ export declare type UpdateAndFind<ModelClass> = (selector: ModelToMongoSelector<
|
|
|
72
79
|
export declare type UpdateItem<ModelClass> = (item: {
|
|
73
80
|
_id: string;
|
|
74
81
|
} & ModelClass, modifier: ModelToUpdateFilter<ModelClass>) => Promise<void>;
|
|
75
|
-
export declare type InsertOne<ModelClass> = (doc:
|
|
76
|
-
export declare type InsertMany<ModelClass> = (doc: Array<
|
|
82
|
+
export declare type InsertOne<ModelClass> = (doc: ModelToDocumentTypeWithIdOptional<ModelClass>, options?: InsertOptions) => Promise<string>;
|
|
83
|
+
export declare type InsertMany<ModelClass> = (doc: Array<ModelToDocumentTypeWithIdOptional<ModelClass>>, options?: InsertOptions) => Promise<Array<string>>;
|
|
77
84
|
export declare type DeleteMany<ModelClass> = (selector: ModelToMongoSelector<ModelClass>, options?: MongoDB.DeleteOptions) => Promise<MongoDB.DeleteResult>;
|
|
78
85
|
export declare type DeleteOne<ModelClass> = (selector: ModelToMongoSelector<ModelClass>, options?: MongoDB.DeleteOptions) => Promise<MongoDB.DeleteResult>;
|
|
79
86
|
export declare type UpdateOne<ModelClass> = (selector: ModelToMongoSelector<ModelClass>, modifier: ModelToUpdateFilter<ModelClass>, options?: UpdateOptions) => Promise<MongoDB.UpdateResult>;
|
|
@@ -86,6 +93,8 @@ export interface CreateCollectionOptions {
|
|
|
86
93
|
indexes?: Array<CollectionIndex>;
|
|
87
94
|
idGeneration?: 'mongo' | 'random';
|
|
88
95
|
}
|
|
96
|
+
export declare type EstimatedDocumentCount<ModelClass> = (options?: MongoDB.EstimatedDocumentCountOptions) => Promise<number>;
|
|
97
|
+
export declare type CountDocuments<ModelClass> = (selector: ModelToMongoSelector<ModelClass>, options?: MongoDB.CountDocumentsOptions) => Promise<number>;
|
|
89
98
|
export declare type CreateCollection = <ModelClass = any>(options: CreateCollectionOptions) => Collection<ModelClass>;
|
|
90
99
|
export interface Collection<ModelClass = any> {
|
|
91
100
|
name: string;
|
|
@@ -110,6 +119,8 @@ export interface Collection<ModelClass = any> {
|
|
|
110
119
|
findOneAndUpdate: FindOneAndUpdate<ModelClass>;
|
|
111
120
|
updateAndFind: UpdateAndFind<ModelClass>;
|
|
112
121
|
updateItem: UpdateItem<ModelClass>;
|
|
122
|
+
estimatedDocumentCount: EstimatedDocumentCount<ModelClass>;
|
|
123
|
+
countDocuments: CountDocuments<ModelClass>;
|
|
113
124
|
aggregate: <T = MongoDB.Document>(pipeline?: MongoDB.Document[], options?: MongoDB.AggregateOptions) => MongoDB.AggregationCursor<T>;
|
|
114
125
|
watch: <T = MongoDB.Document>(pipeline?: MongoDB.Document[], options?: MongoDB.ChangeStreamOptions) => MongoDB.ChangeStream<T>;
|
|
115
126
|
loadData: DataLoader.LoadData<ModelClass>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orion-js/mongodb",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.14",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"@orion-js/models": "^3.2.0",
|
|
23
23
|
"@orion-js/resolvers": "^3.2.0",
|
|
24
24
|
"@orion-js/schema": "^3.2.0",
|
|
25
|
-
"@orion-js/
|
|
25
|
+
"@orion-js/services": "^3.2.10",
|
|
26
|
+
"@orion-js/typed-model": "^3.2.10",
|
|
26
27
|
"dataloader": "2.1.0",
|
|
27
28
|
"dot-object": "2.1.4",
|
|
28
29
|
"mongodb": "4.5.0"
|
|
@@ -39,5 +40,5 @@
|
|
|
39
40
|
"publishConfig": {
|
|
40
41
|
"access": "public"
|
|
41
42
|
},
|
|
42
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "87d4cca0154b4beb6e6fa97f298b1440e0c3c231"
|
|
43
44
|
}
|