-
-
Save icebob/434dd6e7d260f74811cb78fc1e852428 to your computer and use it in GitHub Desktop.
Product service file with mongodb adapter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const DbService = require("moleculer-db"); | |
const MongoAdapter = require("moleculer-db-adapter-mongo"); | |
module.exports = { | |
name: "products", | |
mixins: [DbService], | |
adapter: new MongoAdapter("mongodb://localhost/my-first-service"), | |
collection: "products" | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment