The Railway MongoDB plugin allows you to provision and connect to a MongoDB database with zero configuration.
When you run
railway run in a project with the MongoDB plugin installed, we inject several environment variables.
This example requires that you run with
You can find examples that use the MongoDB plugin at github.com/railwayapp/examples.