realm-js/lib/results.js

23 lines
425 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, [
'sortByProperty',
]);
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
}