Skip to content

secondary_ref lookup ergonmics #58

Open
@Fryguy

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"})

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions