Then I wanted to find any Person-type vertex who has at least has pet which is a dog.
How could find all those Person-type vertices without traversing all the non-person type vertices?
I tried this query, but still it is traversing all pets of Bazz, I wanted to stop the traversal as soon as I found any matches since Bazz might have thousand other pets.