Mongodb – JavaScript, how to run a piece of code only once?
I am saving my .env content dynamically from the AWS secrets manager, but I want to save all values just once the server starts. What should be the approach? I am using TypeScript: getSecrets("key").then((keys: any) => { const originalKeys =…