Skip to content

Parse Query results (AWS + MongoLab + Android) #414

Closed
@rafapetter

Description

@rafapetter

I have migrated to AWS, MonboLab(data migrated according to parse guide) and am currently testing on android. I have the latest parse-server and latest android SDK version running. So here are 2 problems found after the migration, when android return results from the ParseQuery:

  1. when there are 4 pointers, using query.include("pointer"), the data returned from the pointers are null, which shouldn't since checking mongo 3 pointers have data, and only 1 is null. When I remove this pointer that returns null, the others 3 pointers return data normally. So, is there a include limit issue? how that null pointer is messing all other pointers?

  2. data that have Read or Write permission ACL to the current user are not being returned, unless the data has public permission. Is there any ACL migration setup I'm missing here? I've checked mongo and all classes seemed to have been migrated normally.

Here is the query definition:

ParseQuery<ParseObject> query = ParseQuery.getQuery("Offer");
query.include("seller");
query.include("buyer");
query.include("seller_currency_rate");
query.include("buyer_currency_rate");
query.whereEqualTo("active", true);
query.whereNotEqualTo("seller", currentUser);
query.whereNotEqualTo("buyer", currentUser);
query.whereGreaterThanOrEqualTo("amount", currentUser.getDouble("minimum_amount"));
query.whereLessThanOrEqualTo("amount", currentUser.getDouble("maximum_amount"));
query.whereEqualTo("seller_currency", currentUser.getString("seller_currency"));
query.whereEqualTo("buyer_currency", currentUser.getString("buyer_currency"));
query.orderByDescending("createdAt");
query.findInBackground(new FindCallback<ParseObject>() {

Appreciate any help. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions