have query.all return an array