1

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

rdprescott
  • 11
  • 1

1 Answers1

0

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.

Vladimir Makhaev
  • 1,104
  • 2
  • 10
  • 23