Updated objectquery to allow root for from parameter