Created by: samnang
When searching an association with belongs_to :foobar, optional: true, the current implementation uses INNER JOIN which will filter out resources where the association does not exist.
By default when searching associations, it should LEFT OUTER JOIN the association.