Changes between Version 18 and Version 19 of DeveloperGuidelines/EdenMobile/Services/emDB


Ignore:
Timestamp:
06/12/18 08:29:41 (7 years ago)
Author:
Dominic König
Comment:

--

Legend:

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

    v18 v19  
    200200
    201201NB {{{limitby: [0,1]}}} can also be written as simply {{{limitby: 1}}}
     202
     203=== Aggregation and Groupby ===
     204
     205Aggregates can be constructed from
     206
     207The {{{select()}}} method accepts an object with arguments as (optional) second parameter, e.g. {{{limitby}}} and {{{orderby}}}:
     208
     209{{{#!js
     210set.select(
     211    [array of fields],
     212    {
     213        limitby: [0,1],
     214        orderby: field
     215    },
     216    function(rows) {...}
     217);
     218}}}