Closed cabol closed 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:
find_by
fetch
id
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:fetch
– to get a single doc by itsid
find_by
– only for queries