adding back the $query so I can pass hints

When you did the manual merge of the work I did for introducing the stream workers, you forgot this small piece.  I added this so that we could pass $hints into the getChildren call.