Sha256: 1517491a685c2c23bd8cacaa4175923b327ae278336526dfff23c76b4605bb32

Contents?: true

Size: 682 Bytes

Versions: 9

Compression:

Stored size: 682 Bytes

Contents

{
  // present
  $present: 'key',
  
  // set
  $set: {key: value},
  // aliases
  $is: ...,
  
  // unset
  $unset: 'key',
  // aliases
  $absent: ...,
  $missing: ...,
  
  // contains (array)
  // 
  $contains: [v1, v2, v3],
  $contains: [{$value: v1, $before: v2, $after: v3}],
  
  $contains:
  $contain: ..., 
  $includes: ...,
  $include: ...,
  
  // missing (array)
  a: {$missing: [v1, v2, v3]},
  // => 
  a: {
    $type: 'array',
    $missing: [v1, v2, v3],
  }
  
  $type: 'array',
  
  // contains (hash)
  topKey: {$set: {nestedKey: value},
  
  $init: value,
}

// init key k to value v
{
  k: {$init: v},
  // => 
  $type: 'dict',
  k: {
    $defaultValue: v,
  }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
qb-0.1.42 dev/scratch/stateSpec.js
qb-0.1.41 dev/scratch/stateSpec.js
qb-0.1.40 dev/scratch/stateSpec.js
qb-0.1.39 dev/scratch/stateSpec.js
qb-0.1.38 dev/scratch/stateSpec.js
qb-0.1.37 dev/scratch/stateSpec.js
qb-0.1.36 dev/scratch/stateSpec.js
qb-0.1.35 dev/scratch/stateSpec.js
qb-0.1.34 dev/scratch/stateSpec.js