We do not have bulk upload functionality within the app at this stage.

But  you can easily programmatically write the content into your Firebase DB using our SDK (for the realtime DB) or using the Firebase SDK directly (for cloud firestore).

An example could look like this:

const listOfNumbers = [
  // your content here
]

Promise.all(listOfNumbers.map(item => {
  const id = Date.now().toString()
  return app.content.set('your-schema-key', id, item)
}))
  .then(() => console.log('success'))
  .catch(error => console.error(error));

By following the above process, one thing that might give you a problem is:

  • If the map loop runs sub-millisecond which will cause the id  not to be unique.

  • If you run into that, you can look at setting a millisecond timeout for each iteration.

You can read more about the app.content.set()  method here: https://flamelink.github.io/flamelink/#/content?id=set

Keep us updated and let us know if this helps?

Did this answer your question?