support a find carts query
(cherry picked from commit e4e4ca2)