JSON Model-to-Model Projection (JM2MP) Documentation

JSON Model-to-Model Projection (JM2MP) Documentation

Namespace

JM2MP_PROJECTIONS

jm2mp/evaluator~JM2MP_PROJECTIONS

Operators table. Each entry is asynchronous to maintain consistency with the QueryAdapter's contract.

It must be stay in sync with the validator's KNOWN_OPS and OP_ARGS.

Methods

asyncstatic

abs(op, env) → {*}

The ABS arithmetic operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

add(op, env) → {*}

The ADD arithmetic operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

and(op, env) → {*}

The AND logical operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

call(op, env) → {*}

The CALL template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

coalesce(op, env) → {*}

The COALESCE template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

concat(op, env) → {*}

The CONCAT string operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

cons(op, env) → {*}

The CONS template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

div(op, env) → {*}

The DIV arithmetic operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

eq(op, env) → {*}

The EQ predicate.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

foldArr(op, env) → {*}

The FOLDARR template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

foldObj(op, env) → {*}

The FOLDOBJ template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

get(op, env) → {*}

The GET template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

gt(op, env) → {*}

The GT predicate.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

gte(op, env) → {*}

The GTE predicate.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

has(op, env) → {*}

The HAS predicate.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

if(op, env) → {*}

The IF template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

insert(op, env) → {*}

The INSERT template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

length(op, env) → {*}

The LENGTH operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

let(op, env) → {*}

The LET template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

lookup(op, env) → {*}

The LOOKUP template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

lower(op, env) → {*}

The TO-LOWER-CASE string operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

lt(op, env) → {*}

The LT predicate.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

lte(op, env) → {*}

The LTE predicate.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

merge(op, env) → {*}

The MERGE template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

mod(op, env) → {*}

The MOD arithmetic operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

mul(op, env) → {*}

The MUL arithmetic operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

neg(op, env) → {*}

The NEG arithmetic operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

neq(op, env) → {*}

The NEQ predicate.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

not(op, env) → {*}

The NOT logical operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

or(op, env) → {*}

The OR logical operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

pipe(op, env) → {*}

The PIPE template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

sort(op, env) → {*}

The SORT template command.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

sub(op, env) → {*}

The SUB arithmetic operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

substring(op, env) → {*}

The SUBSTRING string operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

typeof(op, env) → {*}

The TYPE-OF operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source

asyncstatic

upper(op, env) → {*}

The TO-UPPER-CASE string operator.

Parameters

  • op object

    Template command to execute.

  • env object

    Runtime execution environment.

Returns

  • *

    Resultant JSON value from projection.

Source