move relationDepth to the queryOptions