Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep searching not working on collections #40

Open
therebelrobot opened this issue Feb 16, 2016 · 2 comments
Open

Deep searching not working on collections #40

therebelrobot opened this issue Feb 16, 2016 · 2 comments

Comments

@therebelrobot
Copy link

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?

therebelrobot added a commit to therebelrobot/backbone-deep-model-collection-search that referenced this issue Feb 17, 2016
@therebelrobot
Copy link
Author

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

@halfnibble
Copy link

This is the use case I need this library for. Does "where" work, or is it not functioning either?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants