I understand, when specifying a @OffsetConnection relation a couple of endpoints will automatically be generated. In this example the following are generated.
ie. => addSubTasksToTodoItem - A mutation to add SubTasks to a TodoItem
How can I create record and relation with related entity with single mutation (Many to Many relationship)?
I was thinking of using hooks, but I think all of the hooks are all @ Before[operation] so it would not help [as id would be generated after insert which we need to create relation entry]
Setup:
NestJs TypeOrm Nestjs-Query PostgreSQL
I understand, when specifying a @OffsetConnection relation a couple of endpoints will automatically be generated. In this example the following are generated. ie. => addSubTasksToTodoItem - A mutation to add SubTasks to a TodoItem
How can I create record and relation with related entity with single mutation (Many to Many relationship)?
I was thinking of using hooks, but I think all of the hooks are all @ Before[operation] so it would not help [as id would be generated after insert which we need to create relation entry]