Closed m-byte closed 8 years ago
Incredible work! Thanks for that! This is really complex stuff.
@m-byte do you think you can add some tests for it?
@paveltiunov sure, shouldn't be a problem.
One question though:
Should the user rather enter filters in Mongodb syntax ($or: {}
) or Strongloop syntax (or: {}
)? Right now, it is $or: {}
. It would be easy to change, though.
@paveltiunov which file do the tests belong into? A new storage-driver-test.js
or one of the existing ones?
@m-byte I think we can support both 😄
Yep. You can add it to storage-driver-test.js
.
Since I needed to do some slightly more complex filtering, I modified storage-driver.js to support this. It is now recursively scanning through the filtering object.