realm-js/lib/results.js
Scott Kyle 632f9d737e Add methods to create snapshot of List and Results
The Results class was updated to match the style of List and include a flag (m_live) that determines if it should sync updates. If an object in the static Results is deleted, then it will return null.
2015-12-30 16:53:26 -08:00

24 lines
441 B
JavaScript

/* Copyright 2015 Realm Inc - All Rights Reserved
* Proprietary and Confidential
*/
'use strict';
const constants = require('./constants');
const util = require('./util');
module.exports = {
create,
};
class Results {}
util.createMethods(Results.prototype, constants.objectTypes.RESULTS, [
'snapshot',
'sortByProperty',
]);
function create(realmId, info) {
return util.createList(Results.prototype, realmId, info);
}