Negotiate Pushing Milestone

    backendless-where-clause-monitor

    1.2.1 • Public • Published

    Backendless WhereCaluse Monitor

    Install:

    Add to your project in package.json this dependency:

    "dependencies": {
      ...
        "backendless-where-clause-monitor": "git+ssh://git@gitlab.backendless.com:backendless/where-clause-monitor.git"
      ...  
    }
    

    Usage:

    ES 6 import

    import createWhereClauseMonitor from 'backendless-where-clause-monitor'
    
    

    Common Import

    const createWhereClauseMonitor = require('backendless-where-clause-monitor')
    
    

    Example

    const whereClause = "foo = 'bar' and age > 25 "
    
    const whereClauseMonitor = createWhereClauseMonitor(whereClause)
    
    whereClauseMonitor({ foo: 'bar', age: 123 }) => true
    whereClauseMonitor({ foo: 'bar', age: 123, bar: 'string' }) => true
    whereClauseMonitor({ foo: 'bar' }) => false
    whereClauseMonitor({ age: 123 }) => false
    whereClauseMonitor({ foo: 'bar2', age: 123 }) => false
    whereClauseMonitor({ foo: 'bar', age: 10 }) => false
    

    Tests

    npm test
    

    Keywords

    none

    Install

    npm i backendless-where-clause-monitor

    DownloadsWeekly Downloads

    1

    Version

    1.2.1

    License

    ISC

    Unpacked Size

    205 kB

    Total Files

    12

    Last publish

    Collaborators

    • valodya
    • stanislaw.grin