-
Notifications
You must be signed in to change notification settings - Fork 0
リビジョンのテーブルをカラムを指定してソートできるようにする #1
Comments
ソートはクライアントサイドじゃなくてサーバーサイドだよね? // TODO: return "meta" and "items"
function findCaptures(skip, limit) {
return Q.ninvoke(db.captures, 'aggregate', [
{$match: {checkedAs: 'IS_OK'}},
{$group: {
_id: '$capture',
updatedAt: {$max: '$updatedAt'},
updatedBy: {$last: '$updatedBy'},
expectedRevisions: { $push: '$revision' } } },
{$sort: {_id: -1}},
{$skip: skip || 0},
{$limit: limit || DEFAULT_LIMIT}
]);
} |
yes > サーバーサイド |
Do you mean you don't have to receive |
no, please use |
Ah, I see. I didn't mean to use |
Yes in that way you are right ask any time |
Yeah, what I wanted to say is that I'm going to add a query parameter |
Yes you are right please use an existing ordering functionality of |
Add column sort function to the revisions table
|
No description provided.
The text was updated successfully, but these errors were encountered: