Create multiple rows in table from array?

Is possible to add multiple rows at once from array with sequelize.js? This is my code:

  var user ={
    password: req.body.password,
    userlevel: '3',

  .find({ where: { email: } })

    if (existingUser) {
      return res.redirect('/staff');

      if (err) return next(err);
    return next(err);

Thanks for any advise!

There has been an update in the document. check this link–creating–updating-and-destroying-multiple-rows-at-once-

  { username: 'barfooz', isAdmin: true },
  { username: 'foo', isAdmin: true },
  { username: 'bar', isAdmin: false }

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .
Read More:   How does !!~ (not not tilde/bang bang tilde) alter the result of a 'contains/included' Array method call?

Similar Posts