I notice that (I think) share.js creates a sub-document called m that contains mtime and ctime in my database. Is there a derby.js way to $orderby
based on those attributes?
Thanks
I notice that (I think) share.js creates a sub-document called m that contains mtime and ctime in my database. Is there a derby.js way to $orderby
based on those attributes?
Thanks
I`m not sure, but you can try something like this:
model.query('collectionName', {$orderby: {_m: {mtime: 1}}});
But anyway _m, _v, _type fields will be removed before you get document from model.