Typeorm: Inserting new entity with Relation attached in single query

前端 未结 0 508
逝去的感伤
逝去的感伤 2020-12-07 18:59

let\'s say I have a User and a Post Entity.

In my user entity I will have:

@OneToMany(() => Post, (post) => post.user)
posts: Post[];


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题