Skip to content Skip to sidebar Skip to footer

Parse: How Can I Get Relation From A Local Data Store (...fromlocaldatastore())?

I am developing an app to serve as a learning and I'm using Parse (parse.com) as a data source. I am conducting download all objects of my classes in the parse and saving to a loca

Solution 1:

You can't according to the documentation:

By default, when fetching an obj ect, related ParseObjects are not fetched

There are work arounds but they might not be practical because by what I understand, you only have one image in your relation per ParseObject in your "Notica" class as you call getFirst(). In this case, using a Pointer would be a better decision but those aren't fetched by default either BUT they are cached to the LocalDatastore. You'll need to add the following code to your query to fetch the Pointer object.

query.include("your_column_key");

Post a Comment for "Parse: How Can I Get Relation From A Local Data Store (...fromlocaldatastore())?"