my @ids = ( 1, 2, 3, 4 ); my $rs = $schema->resultset('records'); my @records = $rs->find( @ids, { key => 'primary' } ); ## Throws the following error: ## !!! DBIx::Class::ResultSet::find(): find() expects ## either a column/value hashref, or a list of values ## corresponding to the columns of the specified unique ## constraint 'primary'