inaka / sumo_db

Erlang Persistency Framework
http://inaka.github.io/sumo_db/
Apache License 2.0
174 stars 37 forks source link

Split `find_by` function in order to have two explicit functions: `fetch` and `find_by` #265

Closed cabol closed 8 years ago

cabol commented 8 years ago

Currently, find_by function encapsulated the logic to get a single result by ID and get a bunch of docs that matches with a provided query/conditions. The idea is split this in two explicit function to avoid ambiguity: