You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem when I use find action with the "query" param, I would like to use the ''OR" condition but currently just is possible "AND" condition.
Why can array solve the problem? If it's not implemented in the service and adapters.
By the way, if the query is a String, it wil be parsed to JSON object which is passed to the adapter.
// Querying with OR operator:userRepository.find({where: [{firstName: "Timber",lastName: "Saw"},{firstName: "Stan",lastName: "Lee"}]});
So when I call my action like this:
ctx.call(`svc1.find`,{
searchFields,
query
});
The thing is that when I exec the code the first place where it goes is the mixin "moleculer-db" and if this does not have a "query" param with a type array, moleculer throw an params validation error.
Maybe it is a bad implementation but I have could resolve the problem with this.
I have a problem when I use find action with the "query" param, I would like to use the ''OR" condition but currently just is possible "AND" condition.
This problem would be resolved if add one type more on "query" param and this looks like this.
The text was updated successfully, but these errors were encountered: