suggestion: adding to docs an example of a working...
# orm-help
i
suggestion: adding to docs an example of a working with batch of creates (had to chunk insertions -- was getting prisma java errors).. something like
Copy code
const chunks = function(array, size) {
    let results = []
    while (array.length) {
      results.push(array.splice(0, size))
    }
    return results
  }

  const inserted = []
  for (const chunk of chunks(arr_X_data, 30)) {  // eslint-disable-line no-loops/no-loops
    inserted.concat(
      await Promise.all(                        // eslint-disable-line no-await-in-loop
        chunk.map(
          (data)=> prisma.mutation.createX({ data })
        )
      )
    )
  }