orm - How can I update hasandbelongstomany relations for multiple models at once in strongloop loopback -


i have 2 models in strongloop loopback api

  • products
  • tags

between 2 models have defined hasandbelongstomany-relation. in cms want bulk-update functionality products, in can select many products, , assign many tags, in 1 action.

how can save mysql-db, without having iterate on each product, iterate on each tag, , link 2 ?

i checked in docs , found add , remove functions, connect 1 model 1 relatedmodel. there loopback-functionality want?

unfortunately, there no bulk update yet. see https://github.com/strongloop/loopback/issues/1275


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -