What is the correct way to split a Sequelize query with many nested objects into multiple queries?
I have a model A:
Discord canvafy welcome / leave card
I don’t know where the recursion is happening. I don’t know how to stop it from sending multiple welcome attachments. After a while my bot crashes and sends the error: RequestAbortedError [AbortError]: Request aborted. I use sequelize as my schema / model.
How can I insert self-referencing data with Sequelize?
I am trying to insert data into a table that references itself. Basically a folder structure; so a subfolder would have a parent id. When I execute the create statement it is only inserting the first record but none of the children. My question is, how do I insert data that references the same table and how can I select the data? Below is the code I have been working with.