aslagle / reactive-table

A reactive table designed for Meteor
https://atmospherejs.com/aslagle/reactive-table
Other
328 stars 137 forks source link

Filter Array of Objects #376

Open frank1340 opened 8 years ago

frank1340 commented 8 years ago

Hello,

this.notesFilter = new ReactiveTable.Filter('practice-notes-filter', ['notes.$.reminderActive']);

This does not work, nor does 'notes.reminderActive'. What am I doing wrong? Thank you.

aslagle commented 8 years ago

The only thing that works right now is a specific array index, like notes.0.remindersActive. There's no way to filter for something anywhere in the array. Do those work in mongo selectors?

frank1340 commented 8 years ago

Why is that, in regards to reactive-table?

aslagle commented 8 years ago

If it's possible in mongo I don't think there's any reason it couldn't work in reactive-table - I never needed it so I didn't handle this case when I wrote the code to create filter queries.

frank1340 commented 8 years ago

It is certainly possible in Mongo. I wanted to make sure I was not in error with my efforts.

On Tue, Apr 5, 2016 at 10:16 PM, Amy Slagle notifications@github.com wrote:

If it's possible in mongo I don't think there's any reason it couldn't work in reactive-table - I never needed it so I didn't handle this case when I wrote the code to create filter queries.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/aslagle/reactive-table/issues/376#issuecomment-206080969

SimonVuong commented 8 years ago

is this on the roadmap?

aslagle commented 8 years ago

I'd be happy to accept a pr for this, but I probably won't get around to it.