documentclientwrapper.js
function () {
            var deferred = Q.defer();
            var that = this;
            this._innerQueryIterator.executeNext(function (error, resources, responseHeaders) {
                if (error) {
                    addOrMergeHeadersForError(error, responseHeaders);
                    deferred.reject(error);
                } else {
                    deferred.resolve({ feed: resources, headers: responseHeaders });
                }
            });

            return deferred.promise;
        }
function () {
            var deferred = Q.defer();
            var that = this;
            this._innerQueryIterator.executeNext(function (error, resources, responseHeaders) {
                if (error) {
                    addOrMergeHeadersForError(error, responseHeaders);
                    deferred.reject(error);
                } else {
                    deferred.resolve({ feed: resources, headers: responseHeaders });
                }
            });

            return deferred.promise;
        }
function ( ) { var deferred = Q . defer ( ) ; var that = this ; this . _innerQueryIterator . executeNext ( function ( error , resources , responseHeaders ) { if ( error ) { addOrMergeHeadersForError ( error , responseHeaders ) ; deferred . reject ( error ) ; } else { deferred . resolve ( { feed : resources , headers : responseHeaders } ) ; } } ) ; return deferred . promise ; }
Retrieve the next batch of the feed and pass them as an array to a function
@memberof QueryIteratorWrapper
@instance
@Returns {Object} A promise object for the request completion. the onFulfilled callback is of type {@link FeedResponse} and onError callback is of type {@link ResponseError}
Retrieve the next batch of the feed and pass them as an array to a function