edgedb-js icon indicating copy to clipboard operation
edgedb-js copied to clipboard

Bulk inserts

Open colinhacks opened this issue 3 years ago • 1 comments

Allow inserting multiple objects by accepting an array as second argument to e.insert

e.insert(e.Movie, [
  {
    title: 'Star Wars: A New Hope'
  },
  {
    title: 'Star Wars: Empire Strikes Back'
  },  
])

Alternatively we can introduce a new top-level e.insertMany but I'd prefer a simple overload.

Related: https://github.com/edgedb/edgedb-js/issues/382

colinhacks avatar Aug 02 '22 22:08 colinhacks

This would be a game changer!

TreeOfLearning avatar Nov 03 '22 17:11 TreeOfLearning