Open
Description
- secondary_ref is an odd name choice...perhaps
extra_indexes
,alternate_indexes
,lookups
? - When you use a secondary_ref, the current syntax is
# collection def
:secondary_refs = {:by_name => %i(name)}
# in parser
collection.lazy_find({:name => "foo"}, {:ref => :by_name})
A more ergnomic syntax would be
collection.lazy_find(:by_name => {:name => "foo"})