Open Nerdinacan opened 4 years ago
Yes but there's no helper for it implemented. I suppose this should be a built-in functionality somehow since implementing this algorithm in a third part library could easily break in future versions. It would be safer to implement it in a Dexie PR and add unit tests for it so that it will be continously maintained. Could also be made as an addon but add tests for it in the Dexie CI (integration part), which would also safe maintainability. I can just go through the steps needed to perform it by inspecting the _ctx
property of Collection.
Thanks for the clues, man.
I am indeed going to implement it as an add-on for what I need to accomplish right now, but if whatever I cobble together looks good enough to turn into a PR, I'll put one together after my immediate fire is out.
Thanks!
Is there a way to take an instance of a collection or WhereClause and determine whether an individual document object matches the criteria defined by that clause?
This seems like a basic necessary feature of having a where clause at all but I'm having a hard time nailing down where the comparison is actually evaluated in your source.