-
-
Notifications
You must be signed in to change notification settings - Fork 207
Parse SDK - Includeobject is not working while trying to fetch data from respective class #420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@aniket453 This works correctly in version 1.0.26 |
@RodrigoSMarques i am using "parse_server_sdk: ^1.0.26" latest version of parse sdk. |
@aniket453 final QueryBuilder queryBuilder =
QueryBuilder<ParseObject>(ParseObject(keyFavoritesTable));
//Two Pointers: Favorites to Ad (column ad) e Ad to _User (column onwer)
queryBuilder.includeObject(['ad', 'ad.owner']); Query generated by Parse:
Result:
But the payload doesn't seem to be displaying correctly. See the analysis in the debug: |
Hello @RodrigoSMarques I have checked your answer. Your payload is like, But, can you try adding a new column in your ad pointer and when you will try to fetch those columns it's not going to return it anyway. I am also getting similar kind of values. But, i am not getting all the columns. I think following three are different columns. You are also going to get those values without even using includeObject method. But, i want all the column and properties of my class. So can you please try this? Thanks. |
@MungaraJay Examine the ParseResponse result in the debug |
@RodrigoSMarques How to map it using dart code if you are getting values? |
@MungaraJay, try: if (parseResponse.success && parseResponse.results != null) {
parseResponse.results.map((f) {
print(f);
final ad = f.get<ParseObject>('ad');
print(ad);
final user = ad.get<ParseUser>('owner');
print(user);
}); |
Are we safe to close? |
You can close this one. |
Hello,
I am trying to fetch the values from my "Office" class and in my office class "user_id" column is the Pointer to my User class. So i also want to include user object. I am trying following code
Output i am getting is :
[{"className":" Language ","objectId":"w3U0iHfhkh","createdAt":"2020-08-16T10:23:15.961Z","updatedAt":"2020-08-16T10:23:15.961Z","name":"Lang2199","address":"Address1521","user_id":{"__type":"Pointer","className":"_User","objectId":"zbhsxhpr9x"}}]
Update this thread if anyone finds a solution.
Thanks.
The text was updated successfully, but these errors were encountered: