moleculer-db
moleculer-db copied to clipboard
:battery: Database access service mixins for Moleculer
The examples provided on the docs regarding the Sequelize adapter implementation maybe don't take into count the probability that somebody may be using Moler Runner to execute its code. The...
// populate and match Story. find(). populate({ path: 'fans', match: { age: { $gte: 21 } }, //
Could the validatons on the actions be integrated with moleculer's built-in validation middleware, in order do guard for example action hooks and prevent the double checking of the same entity...
Hello, I am following this example: https://github.com/moleculerjs/moleculer-examples/blob/master/conduit/services/articles.service.js and I have applied nested populate but not working. Main populate is working perfect. Requests services: `fields: ["_id", "comment", "pet", "createdAt", "updatedAt" ],...
Models ``` //Criteria { amount: {type: Number}, limit: {type: Number} }, //Pool { criteriaId: { type: Schema.Types.ObjectId, ref: "Criteria", } } ``` Pool service(settings) ``` settings: { fields: ['criteriaId'], populates:...
Allow support of multi tenants In settings ```js { // this could be specific to the adapters tenantStrategy: { // if these keys are not preset we throw validation error...
## Problem / motivation `sanitizeParams` function does not filter out fields inside `query` params. This presents a challenge in "hiding" fields in from public access, since an attacker can still...
Currently entity validator seems to be applied on `create` and `insert` actions which is good. ## Problem / motivation Client is not able to `create` entity without passing validation rules,...
I'd like ot request that GridFS be added to the moleculer-db-adapter-mongo package so that GridFS streams can be used for files like images / audio / large text files can...
Hello, I have not found any smart issue to manage this problem, the adapter changes the _id field as string, but I have also other ObjectId fields (some references to...