mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
Merge pull request #4212 from haschu/fix/4196
fix(docs): Fixed many-to-many docs
This commit is contained in:
commit
6fd579301e
@ -82,6 +82,8 @@ category2.name = "zoo";
|
||||
await connection.manager.save(category2);
|
||||
|
||||
const question = new Question();
|
||||
question.title = "dogs";
|
||||
question.text = "who let the dogs out?";
|
||||
question.categories = [category1, category2];
|
||||
await connection.manager.save(question);
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user