Closed janryWang closed 8 years ago
Hello @janryWang. What do you need to achieve in the end. Get the desired data, or select it to listen to its updates?
I just want search dataļ¼and I need a powerful search feature like mongo query languageš
I you just want to search data, you can just use JavaScript builtin filter
method like this:
const collection = tree.get('collection');
const foundItems = collection.filter(function(item) {
return item.id > 1000;
});
I what you need is a configuration model supplied as data like in Mongo, then Baobab won't help you but you could use its data along with different library doing just this kind of work.
Something like Sift for instance.
Perfect ! Thank you very much! I like it !
like this