realm-js/lib/results.js

25 lines
449 B
JavaScript
Raw Normal View History

2015-10-28 17:37:17 +00:00
/* Copyright 2015 Realm Inc - All Rights Reserved
* Proprietary and Confidential
*/
2015-10-08 00:08:19 +00:00
'use strict';
const constants = require('./constants');
const util = require('./util');
2015-10-08 00:08:19 +00:00
module.exports = {
create,
};
2015-10-08 00:08:19 +00:00
class Results {}
2015-10-08 00:08:19 +00:00
util.createMethods(Results.prototype, constants.objectTypes.RESULTS, [
2016-02-18 04:27:10 +00:00
'filtered',
'snapshot',
'sorted',
]);
2015-10-08 00:08:19 +00:00
function create(realmId, info) {
return util.createList(Results.prototype, realmId, info);
2015-10-08 00:08:19 +00:00
}