@ptc-org/nestjs-query-typegoose 1.0.0-alpha.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,486 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [0.30.0](https://github.com/tripss/nestjs-query/compare/v0.29.0...v0.30.0) (2021-09-30)
7
+
8
+ **Note:** Version bump only for package @nestjs-query/query-typegoose
9
+
10
+
11
+
12
+
13
+
14
+ # [0.29.0](https://github.com/tripss/nestjs-query/compare/v0.28.1...v0.29.0) (2021-09-09)
15
+
16
+
17
+ ### Features
18
+
19
+ * **query-typegoose:** Adds the ability to use discriminators ([#1321](https://github.com/tripss/nestjs-query/issues/1321)) ([2a7da59](https://github.com/tripss/nestjs-query/commit/2a7da59c3c857acedbd786d6df5772645c00f543)), closes [#1320](https://github.com/tripss/nestjs-query/issues/1320)
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.28.1](https://github.com/tripss/nestjs-query/compare/v0.28.0...v0.28.1) (2021-07-27)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **query-typegoose:** ignore undefined id field in creation dto ([#1165](https://github.com/tripss/nestjs-query/issues/1165)) ([db5bf44](https://github.com/tripss/nestjs-query/commit/db5bf447bdf0095b01791b694785ecd3fb723c0f))
31
+ * **typegoose:** allow undefined id field when updating or creating ([c2031aa](https://github.com/tripss/nestjs-query/commit/c2031aaf8c65fe7f2440f5b434329662c02296e4))
32
+
33
+
34
+
35
+
36
+
37
+ # [0.28.0](https://github.com/tripss/nestjs-query/compare/v0.27.0...v0.28.0) (2021-07-19)
38
+
39
+ **Note:** Version bump only for package @nestjs-query/query-typegoose
40
+
41
+
42
+
43
+
44
+
45
+ # [0.27.0](https://github.com/tripss/nestjs-query/compare/v0.26.0...v0.27.0) (2021-05-12)
46
+
47
+ **Note:** Version bump only for package @nestjs-query/query-typegoose
48
+
49
+
50
+
51
+
52
+
53
+ # [0.26.0](https://github.com/tripss/nestjs-query/compare/v0.25.1...v0.26.0) (2021-04-13)
54
+
55
+
56
+ ### Features
57
+
58
+ * **typegoose:** Implement `setRelations` to set many references ([4ec5fe0](https://github.com/tripss/nestjs-query/commit/4ec5fe07689eacb0456f531d69368b0451ce69a1))
59
+
60
+
61
+
62
+
63
+
64
+ ## [0.25.1](https://github.com/tripss/nestjs-query/compare/v0.25.0...v0.25.1) (2021-04-07)
65
+
66
+
67
+ ### Bug Fixes
68
+
69
+ * **mongoose,typegoose,#881:** Allow string objectId filters ([11098c4](https://github.com/tripss/nestjs-query/commit/11098c441de41462fe6c45742bc317f52ea09711)), closes [#881](https://github.com/tripss/nestjs-query/issues/881)
70
+
71
+
72
+
73
+
74
+
75
+ # [0.25.0](https://github.com/tripss/nestjs-query/compare/v0.24.5...v0.25.0) (2021-03-31)
76
+
77
+
78
+ ### Bug Fixes
79
+
80
+ * Add consistent sorting for aggregate queries ([4ac7a14](https://github.com/tripss/nestjs-query/commit/4ac7a1485c7dcd83569951298606f487608806b1))
81
+
82
+
83
+ ### Features
84
+
85
+ * **typegoose:** Update to support new aggregate with groupBy ([90992e1](https://github.com/tripss/nestjs-query/commit/90992e1a1dcc4e4e888e5946ab639535932f8f52))
86
+
87
+
88
+
89
+
90
+
91
+ ## [0.24.4](https://github.com/tripss/nestjs-query/compare/v0.24.3...v0.24.4) (2021-03-18)
92
+
93
+ **Note:** Version bump only for package @nestjs-query/query-typegoose
94
+
95
+
96
+
97
+
98
+
99
+ ## [0.24.1](https://github.com/tripss/nestjs-query/compare/v0.24.0...v0.24.1) (2021-03-16)
100
+
101
+ **Note:** Version bump only for package @nestjs-query/query-typegoose
102
+
103
+
104
+
105
+
106
+
107
+ # [0.24.0](https://github.com/tripss/nestjs-query/compare/v0.23.1...v0.24.0) (2021-03-15)
108
+
109
+
110
+ ### Features
111
+
112
+ * **typegoose:** Add typegoose package ([#846](https://github.com/tripss/nestjs-query/issues/846)) ([73cf5cd](https://github.com/tripss/nestjs-query/commit/73cf5cdbf11496ad3a3ce3f6bb69975510de26e2))
113
+
114
+
115
+
116
+
117
+
118
+ ## [0.21.1](https://github.com/tripss/nestjs-query/compare/v0.21.0...v0.21.1) (2020-10-18)
119
+
120
+
121
+ ### Bug Fixes
122
+
123
+ * **deps:** update dependency uuid to v8.3.1 ([a2b7555](https://github.com/tripss/nestjs-query/commit/a2b7555c1186e48999d44aa8af9b792f32b18b7e))
124
+
125
+
126
+
127
+
128
+
129
+ # [0.21.0](https://github.com/tripss/nestjs-query/compare/v0.20.2...v0.21.0) (2020-10-16)
130
+
131
+
132
+ ### Bug Fixes
133
+
134
+ * **eslint:** Fix eslint to recognize sub packages ([13fdd2b](https://github.com/tripss/nestjs-query/commit/13fdd2b31289dbc80316cbdb5aa32edbe596bad4))
135
+
136
+
137
+
138
+
139
+
140
+ ## [0.20.2](https://github.com/tripss/nestjs-query/compare/v0.20.1...v0.20.2) (2020-10-01)
141
+
142
+
143
+ ### Bug Fixes
144
+
145
+ * **filters:** Fix bug with incorect parameters in filter ([6ada4f4](https://github.com/tripss/nestjs-query/commit/6ada4f4a12633d41c60de9540dfc28ed0985ca62))
146
+ * **filters:** Fix bug with incorect parameters in filters ([9f4e93b](https://github.com/tripss/nestjs-query/commit/9f4e93b7726d85cb4febe86d2caf941dc957463a))
147
+ * **typeorm:** fix unit tests after fix filters bug ([5f50419](https://github.com/tripss/nestjs-query/commit/5f5041906694ae7c4aa799f52049d0981b97ccfc))
148
+
149
+
150
+
151
+
152
+
153
+ ## [0.20.1](https://github.com/tripss/nestjs-query/compare/v0.20.0...v0.20.1) (2020-09-28)
154
+
155
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
156
+
157
+
158
+
159
+
160
+
161
+ # [0.20.0](https://github.com/tripss/nestjs-query/compare/v0.19.4...v0.20.0) (2020-09-17)
162
+
163
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
164
+
165
+
166
+
167
+
168
+
169
+ ## [0.19.4](https://github.com/tripss/nestjs-query/compare/v0.19.3...v0.19.4) (2020-09-15)
170
+
171
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
172
+
173
+
174
+
175
+
176
+
177
+ ## [0.19.3](https://github.com/tripss/nestjs-query/compare/v0.19.2...v0.19.3) (2020-09-09)
178
+
179
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
180
+
181
+
182
+
183
+
184
+
185
+ ## [0.19.2](https://github.com/tripss/nestjs-query/compare/v0.19.1...v0.19.2) (2020-09-03)
186
+
187
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
188
+
189
+
190
+
191
+
192
+
193
+ ## [0.19.1](https://github.com/tripss/nestjs-query/compare/v0.19.0...v0.19.1) (2020-09-02)
194
+
195
+
196
+ ### Bug Fixes
197
+
198
+ * **typeorm,#493:** Fix uni-directional relation SQL ([7887b8c](https://github.com/tripss/nestjs-query/commit/7887b8c94516194840df03139fecd0d5a0f38f65))
199
+
200
+
201
+
202
+
203
+
204
+ # [0.19.0](https://github.com/tripss/nestjs-query/compare/v0.18.1...v0.19.0) (2020-09-01)
205
+
206
+
207
+ ### Features
208
+
209
+ * **typeorm:** Add additional filter options to QueryService ([64241dc](https://github.com/tripss/nestjs-query/commit/64241dc9c4565c3bb2d4f168c837578bd706c48c))
210
+
211
+
212
+
213
+
214
+
215
+ ## [0.18.1](https://github.com/tripss/nestjs-query/compare/v0.18.0...v0.18.1) (2020-08-14)
216
+
217
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
218
+
219
+
220
+
221
+
222
+
223
+ # [0.18.0](https://github.com/tripss/nestjs-query/compare/v0.17.10...v0.18.0) (2020-08-11)
224
+
225
+
226
+ ### Bug Fixes
227
+
228
+ * **type:** Pin dev dependencies ([442db4c](https://github.com/tripss/nestjs-query/commit/442db4cd9b9d48d0c6a20209f0b44c4a314660ac))
229
+
230
+
231
+ ### Features
232
+
233
+ * **typeorm:** Switch to use unioned queries for relations ([327c676](https://github.com/tripss/nestjs-query/commit/327c6760e3e1a7db6bb0f872928d0502345c925f))
234
+
235
+
236
+
237
+
238
+
239
+ ## [0.17.10](https://github.com/tripss/nestjs-query/compare/v0.17.9...v0.17.10) (2020-08-01)
240
+
241
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
242
+
243
+
244
+
245
+
246
+
247
+ ## [0.17.8](https://github.com/tripss/nestjs-query/compare/v0.17.7...v0.17.8) (2020-07-28)
248
+
249
+
250
+ ### Features
251
+
252
+ * **graphql:** Allow specifying allowed comparisons on filterable fields ([ced2792](https://github.com/tripss/nestjs-query/commit/ced27920e5c2278c2a04c027a692e25b3306f6cb))
253
+
254
+
255
+
256
+
257
+
258
+ ## [0.17.7](https://github.com/tripss/nestjs-query/compare/v0.17.6...v0.17.7) (2020-07-27)
259
+
260
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
261
+
262
+
263
+
264
+
265
+
266
+ ## [0.17.2](https://github.com/tripss/nestjs-query/compare/v0.17.1...v0.17.2) (2020-07-17)
267
+
268
+
269
+ ### Bug Fixes
270
+
271
+ * **typeorm:** Ensure record is entity instance when saving ([3cdbbaf](https://github.com/tripss/nestjs-query/commit/3cdbbaff11b18bcc5e6fd29fd182e2bd66b14f17)), closes [#380](https://github.com/tripss/nestjs-query/issues/380)
272
+
273
+
274
+
275
+
276
+
277
+ # [0.17.0](https://github.com/tripss/nestjs-query/compare/v0.16.2...v0.17.0) (2020-07-16)
278
+
279
+
280
+ ### Features
281
+
282
+ * **aggregations:** Add aggregations to graphql ([af075d2](https://github.com/tripss/nestjs-query/commit/af075d2e93b6abbbfbe32afcc917350f803fadaa))
283
+ * **aggregations,typeorm:** Add relation aggregation to typeorm ([2bf35a9](https://github.com/tripss/nestjs-query/commit/2bf35a92ce80b1f3026fd87cb62cad17eb6eff03))
284
+ * **aggretations:** Add aggregations support to typeorm ([7233c23](https://github.com/tripss/nestjs-query/commit/7233c2397d0ac332e5209ab87ae62f5f555609d6))
285
+
286
+
287
+
288
+
289
+
290
+ ## [0.16.2](https://github.com/tripss/nestjs-query/compare/v0.16.1...v0.16.2) (2020-07-09)
291
+
292
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
293
+
294
+
295
+
296
+
297
+
298
+ ## [0.16.1](https://github.com/tripss/nestjs-query/compare/v0.16.0...v0.16.1) (2020-07-07)
299
+
300
+
301
+ ### Bug Fixes
302
+
303
+ * **typeorm:** Fix import path in relation service [#363](https://github.com/tripss/nestjs-query/issues/363) ([0e6d484](https://github.com/tripss/nestjs-query/commit/0e6d484920960ed1966360a89af979230667b5f7))
304
+
305
+
306
+
307
+
308
+
309
+ # [0.16.0](https://github.com/tripss/nestjs-query/compare/v0.15.1...v0.16.0) (2020-07-05)
310
+
311
+
312
+ ### Features
313
+
314
+ * **typeorm:** Add support for filtering on relations ([aa8788c](https://github.com/tripss/nestjs-query/commit/aa8788cbbc0c95465e1633b57ca48c91b160038a))
315
+
316
+
317
+
318
+
319
+
320
+ ## [0.15.1](https://github.com/tripss/nestjs-query/compare/v0.15.0...v0.15.1) (2020-06-27)
321
+
322
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
323
+
324
+
325
+
326
+
327
+
328
+ # [0.15.0](https://github.com/tripss/nestjs-query/compare/v0.14.3...v0.15.0) (2020-06-23)
329
+
330
+
331
+ ### Features
332
+
333
+ * **graphql,connection:** Add totalCount to connections ([ed1e84a](https://github.com/tripss/nestjs-query/commit/ed1e84a2feb6f89c3b270fcbc1d0eaf6aec5e575))
334
+
335
+
336
+
337
+
338
+
339
+ ## [0.14.2](https://github.com/tripss/nestjs-query/compare/v0.14.1...v0.14.2) (2020-06-19)
340
+
341
+
342
+ ### Bug Fixes
343
+
344
+ * **typeorm:** Allow using string based typeorm relations ([55c157d](https://github.com/tripss/nestjs-query/commit/55c157dbea9ce8c1186a2c2ea17f847857fd2226))
345
+
346
+
347
+
348
+
349
+
350
+ # [0.14.0](https://github.com/tripss/nestjs-query/compare/v0.13.2...v0.14.0) (2020-06-18)
351
+
352
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
353
+
354
+
355
+
356
+
357
+
358
+ # [0.13.0](https://github.com/tripss/nestjs-query/compare/v0.12.0...v0.13.0) (2020-06-12)
359
+
360
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
361
+
362
+
363
+
364
+
365
+
366
+ # [0.12.0](https://github.com/tripss/nestjs-query/compare/v0.11.8...v0.12.0) (2020-06-07)
367
+
368
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
369
+
370
+
371
+
372
+
373
+
374
+ ## [0.11.8](https://github.com/tripss/nestjs-query/compare/v0.11.7...v0.11.8) (2020-05-30)
375
+
376
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
377
+
378
+
379
+
380
+
381
+
382
+ ## [0.11.7](https://github.com/tripss/nestjs-query/compare/v0.11.6...v0.11.7) (2020-05-29)
383
+
384
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
385
+
386
+
387
+
388
+
389
+
390
+ ## [0.11.6](https://github.com/tripss/nestjs-query/compare/v0.11.5...v0.11.6) (2020-05-26)
391
+
392
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
393
+
394
+
395
+
396
+
397
+
398
+ ## [0.11.5](https://github.com/tripss/nestjs-query/compare/v0.11.4...v0.11.5) (2020-05-21)
399
+
400
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
401
+
402
+
403
+
404
+
405
+
406
+ ## [0.11.4](https://github.com/tripss/nestjs-query/compare/v0.11.3...v0.11.4) (2020-05-19)
407
+
408
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
409
+
410
+
411
+
412
+
413
+
414
+ ## [0.11.3](https://github.com/tripss/nestjs-query/compare/v0.11.2...v0.11.3) (2020-05-16)
415
+
416
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
417
+
418
+
419
+
420
+
421
+
422
+ ## [0.11.2](https://github.com/tripss/nestjs-query/compare/v0.11.1...v0.11.2) (2020-05-14)
423
+
424
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
425
+
426
+
427
+
428
+
429
+
430
+ ## [0.11.1](https://github.com/tripss/nestjs-query/compare/v0.11.0...v0.11.1) (2020-05-11)
431
+
432
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
433
+
434
+
435
+
436
+
437
+
438
+ # [0.11.0](https://github.com/tripss/nestjs-query/compare/v0.10.2...v0.11.0) (2020-05-09)
439
+
440
+
441
+ ### Features
442
+
443
+ * **graphql:** Add graphql module ([282c421](https://github.com/tripss/nestjs-query/commit/282c421d0e6f67fe750fa6005f6cb7d960c8fbd0))
444
+
445
+
446
+
447
+
448
+
449
+ ## [0.10.2](https://github.com/tripss/nestjs-query/compare/v0.10.1...v0.10.2) (2020-05-04)
450
+
451
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
452
+
453
+
454
+
455
+
456
+
457
+ # [0.10.0](https://github.com/tripss/nestjs-query/compare/v0.9.0...v0.10.0) (2020-04-29)
458
+
459
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
460
+
461
+
462
+
463
+
464
+
465
+ # [0.9.0](https://github.com/tripss/nestjs-query/compare/v0.8.9...v0.9.0) (2020-04-26)
466
+
467
+
468
+ ### Features
469
+
470
+ * **typeorm:** Add support for soft deletes ([2ab42fa](https://github.com/tripss/nestjs-query/commit/2ab42faee2802abae4d8496e2529b8eb23860ed4))
471
+
472
+
473
+
474
+
475
+
476
+ ## [0.8.9](https://github.com/tripss/nestjs-query/compare/v0.8.8...v0.8.9) (2020-04-24)
477
+
478
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
479
+
480
+
481
+
482
+
483
+
484
+ ## [0.8.7](https://github.com/tripss/nestjs-query/compare/v0.8.6...v0.8.7) (2020-04-23)
485
+
486
+ **Note:** Version bump only for package @ptc-org/nestjs-query-typeorm
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ <p align="center">
2
+ <a href="https://doug-martin.github.io/nestjs-query" target="blank"><img src="https://doug-martin.github.io/nestjs-query/img/logo.svg" width="120" alt="Nestjs-query Logo" /></a>
3
+ </p>
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@ptc-org/nestjs-query-typeorm.svg)](https://www.npmjs.org/package/@ptc-org/nestjs-query-typeorm)
6
+ [![Test](https://github.com/tripss/nestjs-query/workflows/Test/badge.svg?branch=master)](https://github.com/tripss/nestjs-query/actions?query=workflow%3ATest+and+branch%3Amaster+)
7
+ [![Coverage Status](https://coveralls.io/repos/github/doug-martin/nestjs-query/badge.svg?branch=master)](https://coveralls.io/github/doug-martin/nestjs-query?branch=master)
8
+ [![Known Vulnerabilities](https://snyk.io/test/github/doug-martin/nestjs-query/badge.svg?targetFile=packages/query-typegoose/package.json)](https://snyk.io/test/github/doug-martin/nestjs-query?targetFile=packages/query-typegoose/package.json)
9
+
10
+ # `@ptc-org/nestjs-query-typeorm`
11
+
12
+ The `query-typegoose` package that provides an implementation of `@ptc-org/nestjs-query-core` `QueryService`, built on top of of [nestjs](https://nestjs.com/) and [typegoose](https://github.com/typegoose/typegoose).
13
+
14
+ ## Installation
15
+
16
+ [Install Guide](https://doug-martin.github.io/nestjs-query/docs/introduction/install)
17
+
18
+ ## Getting Started
19
+
20
+ The get started with the `@nestjs-query/query-typegoose` package checkout the [Getting Started](https://doug-martin.github.io/nestjs-query/docs/persistence/typegoose/getting-started) docs.
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@ptc-org/nestjs-query-typegoose",
3
+ "version": "1.0.0-alpha.1",
4
+ "description": "Typegoose adapter for @ptc-org/nestjs-query-core",
5
+ "author": "john mcinall<johnmcinall@gmail.com>",
6
+ "homepage": "https://github.com/tripss/nestjs-query#readme",
7
+ "license": "MIT",
8
+ "main": "src/index.js",
9
+ "types": "src/index.d.ts",
10
+ "directories": {
11
+ "lib": "src",
12
+ "test": "__tests__"
13
+ },
14
+ "files": [
15
+ "dist/src/**"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "dependencies": {
21
+ "camel-case": "^4.1.2",
22
+ "is-class": "0.0.9",
23
+ "lodash.escaperegexp": "^4.1.2",
24
+ "lodash.merge": "^4.6.2",
25
+ "tslib": "^2.1.0"
26
+ },
27
+ "peerDependencies": {
28
+ "@nestjs/common": "^8.0.4",
29
+ "@typegoose/typegoose": "^8.0.0-beta.2",
30
+ "nestjs-typegoose": "^7.1.38",
31
+ "@ptc-org/nestjs-query-core": "1.0.0-alpha.1",
32
+ "reflect-metadata": "^0.1.13"
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/tripss/nestjs-query.git",
37
+ "directory": "packages/query-typegoose"
38
+ },
39
+ "bugs": {
40
+ "url": "https://github.com/tripss/nestjs-query/issues"
41
+ },
42
+ "typings": "./src/index.d.ts"
43
+ }
package/src/index.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NestjsQueryTypegooseModule = exports.TypegooseQueryService = void 0;
4
+ var services_1 = require("./services");
5
+ Object.defineProperty(exports, "TypegooseQueryService", { enumerable: true, get: function () { return services_1.TypegooseQueryService; } });
6
+ var module_1 = require("./module");
7
+ Object.defineProperty(exports, "NestjsQueryTypegooseModule", { enumerable: true, get: function () { return module_1.NestjsQueryTypegooseModule; } });
8
+ //# sourceMappingURL=index.js.map