nohm
nohm copied to clipboard
Searching for a unique while other searches would prevent finding that unique still results in unique
When searching for a property that is indexed as a unique and that unique exists, it will always be returned - even if another search property would prevent it.
What do you mean by "even if another search property would prevent it" ? In the doc there is no reference about preventing only unique result. "Unique is the fastest and if you look for a property that is unqiue all other search criterias are ignored.".
It could be improved by passing object to unique param name. I have used object for my regexp functionallity.
find({"param_name":{value:'unique_value', optional:true}}, cb)
Hope that clears it up. ;-)