LoopBack 3 has reached end of life. We are no longer accepting pull requests or providing support for community users. The only exception is fixes for critical bugs and security vulnerabilities provided as part of support for IBM API Connect customers. We urge all LoopBack 3 users to migrate their applications to LoopBack 4 as soon as possible. Learn more about LoopBack's long term support policy.

Using mLab*

Edit this page
Page Contents

If you are using mLab to host your MongoDB database, use the LoopBack url property to configure your data source, since the connection string is dynamically generated.

For example, the entry in datasources.json might look like this:

/server/datasources.json

"mongodb": {
 "connector": "loopback-connector-mongodb",
 "url": "mongodb://localhost:27017/mydb"
}

For information on how to get your connection URI, see the mLab documentation.


AltStyle によって変換されたページ (->オリジナル) /