LocalDatastore

Parse. LocalDatastore

new LocalDatastore()

Provides a local datastore which can be used to store and retrieve Parse.Object.
To enable this functionality, call Parse.enableLocalDatastore().

Pin object to add to local datastore

await object.pin();
await object.pinWithName('pinName');

Query pinned objects

query.fromLocalDatastore();
query.fromPin();
query.fromPinWithName();
const localObjects = await query.find();

Methods

(static) updateFromServer()

Updates Local Datastore from Server

await Parse.LocalDatastore.updateFromServer();