sdk/src/sync/pull.js
function buildQueryFromLastKnownUpdateAt(updatedAt) {

        lastKnownUpdatedAt = updatedAt;

        // Make a copy of the table query and tweak it to fetch the next first page
        pagePullQuery = copyQuery(tablePullQuery);
        pagePullQuery = pagePullQuery.where(function(lastKnownUpdatedAt) {
            // Ideally we would have liked to set this[tableConstants.sysProps.updatedAtColumnName]
            // but this isn't supported
            return this.updatedAt >= lastKnownUpdatedAt;
        }, lastKnownUpdatedAt);

        pagePullQuery.orderBy(tableConstants.sysProps.updatedAtColumnName);
        pagePullQuery.take(pageSize);
    }
function buildQueryFromLastKnownUpdateAt(updatedAt) {

        lastKnownUpdatedAt = updatedAt;

        // Make a copy of the table query and tweak it to fetch the next first page
        pagePullQuery = copyQuery(tablePullQuery);
        pagePullQuery = pagePullQuery.where(function(lastKnownUpdatedAt) {
            // Ideally we would have liked to set this[tableConstants.sysProps.updatedAtColumnName]
            // but this isn't supported
            return this.updatedAt >= lastKnownUpdatedAt;
        }, lastKnownUpdatedAt);

        pagePullQuery.orderBy(tableConstants.sysProps.updatedAtColumnName);
        pagePullQuery.take(pageSize);
    }
function buildQueryFromLastKnownUpdateAt ( updatedAt ) { lastKnownUpdatedAt = updatedAt ; // Make a copy of the table query and tweak it to fetch the next first page pagePullQuery = copyQuery ( tablePullQuery ) ; pagePullQuery = pagePullQuery . where ( function ( lastKnownUpdatedAt ) { // Ideally we would have liked to set this[tableConstants.sysProps.updatedAtColumnName] // but this isn't supported return this . updatedAt >= lastKnownUpdatedAt ; } , lastKnownUpdatedAt ) ; pagePullQuery . orderBy ( tableConstants . sysProps . updatedAtColumnName ) ; pagePullQuery . take ( pageSize ) ; }
Builds a query to fetch one page Records with updatedAt values >= updatedAt will be fetched
Builds a query to fetch one page Records with updatedAt values > = updatedAt will be fetched