sdk/src/sync/pull.js
function validateQuery(query) {
        Validate.isObject(query);
        Validate.notNull(query);
        
        var components = query.getComponents();
        
        for (var i in components.ordering) {
            throw new Error('orderBy and orderByDescending clauses are not supported in the pull query');
        }
        
        if (components.skip) {
            throw new Error('skip is not supported in the pull query');
        }

        if (components.take) {
            throw new Error('take is not supported in the pull query');
        }

        if (components.selections && components.selections.length !== 0) {
            throw new Error('select is not supported in the pull query');
        }

        if (components.includeTotalCount) {
            throw new Error('includeTotalCount is not supported in the pull query');
        }
    }
function validateQuery(query) {
        Validate.isObject(query);
        Validate.notNull(query);
        
        var components = query.getComponents();
        
        for (var i in components.ordering) {
            throw new Error('orderBy and orderByDescending clauses are not supported in the pull query');
        }
        
        if (components.skip) {
            throw new Error('skip is not supported in the pull query');
        }

        if (components.take) {
            throw new Error('take is not supported in the pull query');
        }

        if (components.selections && components.selections.length !== 0) {
            throw new Error('select is not supported in the pull query');
        }

        if (components.includeTotalCount) {
            throw new Error('includeTotalCount is not supported in the pull query');
        }
    }
function validateQuery ( query ) { Validate . isObject ( query ) ; Validate . notNull ( query ) ; var components = query . getComponents ( ) ; for ( var i in components . ordering ) { throw new Error ( 'orderBy and orderByDescending clauses are not supported in the pull query' ) ; } if ( components . skip ) { throw new Error ( 'skip is not supported in the pull query' ) ; } if ( components . take ) { throw new Error ( 'take is not supported in the pull query' ) ; } if ( components . selections && components . selections . length !== 0 ) { throw new Error ( 'select is not supported in the pull query' ) ; } if ( components . includeTotalCount ) { throw new Error ( 'includeTotalCount is not supported in the pull query' ) ; } }
Not all query operations are allowed while pulling. This function validates that the query does not perform unsupported operations.
Not all query operations are allowed while pulling . This function validates that the query does not perform unsupported operations .