I would like to get a list of objects that match a specified ID from datamapper.
I know I could use multiple ‘or‘ conditions, but the list of id’s can be in the hundreds.
Is there a datamapper command that is equivalent to the following sql?
select * from table where id in (1,2,3,4,5)
You can! It will look something like this:
EDIT: you can see this on the github page for dm-core: