Adds $queryOne compare fn for querying child objs