Adding `record` to `data.select()` when `where` is a `Function`