public bool MoveNext() { if (_underlyingEnumerator == null) { _underlyingEnumerator = _cosmosClient.ExecuteSqlQuery( _collectionId, _selectExpression.ToSqlQuery(_queryContext.ParameterValues)); } var hasNext = _underlyingEnumerator.MoveNext(); Current = hasNext ? _underlyingEnumerator.Current.GetPropertyValue <JObject>("query") : default; return(hasNext); }