We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd70a11 commit de71d94Copy full SHA for de71d94
package.json
@@ -28,7 +28,7 @@
28
"dependencies": {
29
"pg": "^6.1.0",
30
"reflect-metadata": "^0.1.8",
31
- "typeorm": "0.0.2-alpha.62"
+ "typeorm": "0.0.2-alpha.70"
32
},
33
"scripts": {
34
"start": "tsc && node src/index.js"
src/entity/Post.ts
@@ -14,7 +14,7 @@ export class Post {
14
text: string;
15
16
@ManyToMany(type => Category, {
17
- cascadeInert: true
+ cascadeInsert: true
18
})
19
@JoinTable()
20
categories: Category[];
src/index.ts
@@ -16,7 +16,7 @@ createConnection({
Post,
Category
],
- autoSchemaCreate: true
+ autoSchemaSync: true
}).then(async connection => {
21
22
const category1 = new Category();
0 commit comments