Cesare
Cesare

Reputation: 9419

How do I view which objects have been stored locally in Parse?

My goal is to see which PFObjects have been saved locally with the Parse's Local Datastore. I can save objects with myObject.pinInBackground() and I can retrieve them with getObjectInBackgroundWithId given an objectId.

So do I have to store the objectIds to see which objects have been stored locally? Isn't there a better way to list all the objects saved?

Upvotes: 0

Views: 33

Answers (1)

Russell Austin
Russell Austin

Reputation: 409

You can query local datastore objects by calling the query.fromLocalDatastore() method before executing the query.

https://parse.com/docs/ios/guide#queries-querying-the-local-datastore

Upvotes: 1

Related Questions