@tsed/mikro-orm 8.38.4 → 8.38.6
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/package.json +9 -9
- package/readme.md +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/mikro-orm",
|
|
3
|
-
"version": "8.38.
|
|
3
|
+
"version": "8.38.6",
|
|
4
4
|
"description": "MikroORM package for Ts.ED framework",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@mikro-orm/core": "6.3.12",
|
|
30
30
|
"@mikro-orm/mongodb": "6.3.12",
|
|
31
|
-
"@tsed/barrels": "8.38.
|
|
32
|
-
"@tsed/core": "8.38.
|
|
33
|
-
"@tsed/di": "8.38.
|
|
34
|
-
"@tsed/json-mapper": "8.38.
|
|
31
|
+
"@tsed/barrels": "8.38.6",
|
|
32
|
+
"@tsed/core": "8.38.6",
|
|
33
|
+
"@tsed/di": "8.38.6",
|
|
34
|
+
"@tsed/json-mapper": "8.38.6",
|
|
35
35
|
"@tsed/logger": "^8.0.0",
|
|
36
|
-
"@tsed/platform-http": "8.38.
|
|
37
|
-
"@tsed/schema": "8.38.
|
|
38
|
-
"@tsed/testcontainers-mongo": "8.38.
|
|
39
|
-
"@tsed/typescript": "8.38.
|
|
36
|
+
"@tsed/platform-http": "8.38.6",
|
|
37
|
+
"@tsed/schema": "8.38.6",
|
|
38
|
+
"@tsed/testcontainers-mongo": "8.38.6",
|
|
39
|
+
"@tsed/typescript": "8.38.6",
|
|
40
40
|
"cross-env": "7.0.3",
|
|
41
41
|
"ts-mockito": "^2.6.1",
|
|
42
42
|
"typescript": "6.0.2",
|
package/readme.md
CHANGED
|
@@ -193,7 +193,7 @@ export class UsersService {
|
|
|
193
193
|
To begin, we need to define an Entity MikroORM like this and use Ts.ED Decorator to define the JSON Schema.
|
|
194
194
|
|
|
195
195
|
```typescript
|
|
196
|
-
import {Property, MaxLength, Required} from "@tsed/schema";
|
|
196
|
+
import {Property, Maximum, MaxLength, Minimum, Required} from "@tsed/schema";
|
|
197
197
|
import {Entity, Property, PrimaryKey, Property as Column} from "@mikro-orm/core";
|
|
198
198
|
|
|
199
199
|
@Entity()
|
|
@@ -213,7 +213,7 @@ export class User {
|
|
|
213
213
|
lastName!: string;
|
|
214
214
|
|
|
215
215
|
@Column()
|
|
216
|
-
@
|
|
216
|
+
@Minimum(0)
|
|
217
217
|
@Maximum(100)
|
|
218
218
|
age!: number;
|
|
219
219
|
}
|