I am new in moleculer framework. I want to store the data in mongoDB which received from moleculer framework.
In sort i want to MongoDB
instead of moleculer-db
it is possible ?
Please help me. Thanks.
I am new in moleculer framework. I want to store the data in mongoDB which received from moleculer framework.
In sort i want to MongoDB
instead of moleculer-db
it is possible ?
Please help me. Thanks.
If you don't want to use moleculer-db then you need to write the connection logic and the actions yourself. In order to establish the connection with the DB you need to use lifecycle events. Take a look at this example. Instead of DB connection it creates an HTTP server but the logic is the same. After that, just write your actions
I use mongoose with mixins. Here is gist with example.