I have 2 models in a Strongloop Loopback API
- Products
- Tags
Between those 2 models I have defined a hasAndBelongsToMany-relation. In my CMS I want a bulk-update functionality for my products, in which I can select many Products, and assign many tags, in one action.
How can I save those easily to my Mysql-DB, without having to iterate over each product, then iterate over each tag, and link those 2 ?
I checked in the docs and found the add and remove functions, but those only connect one model to one relatedModel. Is there already loopback-functionality to do what I want?