How to use the realm.List function in realm

To help you get started, we’ve selected a few realm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github realm / realm-js / tests / js / list-tests.js View on Github external
realm.write(() => {
            let obj = realm.create('PersonList', {list: []});
            TestCase.assertInstanceOf(obj.list, Realm.List);
            TestCase.assertInstanceOf(obj.list, Realm.Collection);
        });
github realm / realm-js / tests / js / list-tests.js View on Github external
        TestCase.assertThrowsContaining(() => new Realm.List(), 'constructor');
        TestCase.assertInstanceOf(Realm.List, Function);
github realm / realm-scanner / Server / index.js View on Github external
function isRealmList(x) {
    return x !== null && x !== undefined && x.constructor === Realm.List
}