Bootstrap.js strapi-Object

System Information
  • Strapi Version: 3.6.8
  • Node Version: v14

I am trying to persist some config in core_store-Table of my Database.
For this goal I am trying to insert the config from a .json-File into the value of my Collection-Type-Key.
If I read Strapi-Documentation bootstrap.js is my “way to go” to fill the database with some necessary data.

However I seem to be not able to access strapi nor strapi.connections to insert the content of my json into the database.

It seems that strapi does not want us to use strapi-Object in bootstrap.js.

So, I am a bit lost right now.
Am I following the wrong direction here?

2 Likes