Is it possible to access m.mtime or m.ctime from share.js in derby.js?

89 Views Asked by At

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

1

There are 1 best solutions below

0
On

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.