Changes between Version 13 and Version 14 of DeveloperGuidelines/EdenMobile/Services/emDB


Ignore:
Timestamp:
11/23/17 22:58:11 (7 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/EdenMobile/Services/emDB

    v13 v14  
    5656If there are multiple operand expressions in an AND or OR, the global {{{allOf()}}} and {{{anyOf()}}} functions can used to improve readability:
    5757{{{#!js
    58 // Multiple operand expressions:
     58// Multiple operand expressions with a long trail of brackets (bit messy):
    5959var query = field.is(5).or(field.is(6).or(field.is(7)));
    6060
    61 // Alternative with anyOf:
     61// Alternative with anyOf (bit cleaner):
    6262var query = anyOf(field.is(5), field.is(6), field.is(7));
    6363}}}