Deep searching not working on collections
therebelrobot opened this issue · comments
Aster Haven commented
I've got it set up so the following occurs when debugging:
> logs.find({'addedProperties.id':'80afb62f-7223-4c44-89dd-027d699e2a11'})
undefined
> logs.at(0).get('addedProperties.id')
"80afb62f-7223-4c44-89dd-027d699e2a11"
where logs
is a backbone collection from the base library. Is there a separate syntax for deep referencing in collection searches? Am I setting something up incorrectly? Or is that outside the scope of this lib?
Aster Haven commented
In the meantime, I created a small sideloader that is doing the immediate job I need from it, found here: https://github.com/therebelrobot/backbone-deep-model-collection-search
Josh Wedekind commented
This is the use case I need this library for. Does "where" work, or is it not functioning either?