Indexing in collections
Closed this issue · 0 comments
ronkorving commented
It would be great to have an indexer built into collections to allow for quick lookups on more than just the ID.
Proposed API:
collection.addIndex(string propertyName);
collection.findOne(string propertyName, any value);
collection.findAll(string propertyName, any value);