-
-
Notifications
You must be signed in to change notification settings - Fork 206
array with relations #235
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
Hi @aBuder . Try final List<ParseObject> restrinctions =
parseObject.get<List<ParseObject>>(keyFieldName);
for (final ParseObject restrinction in restrinctions) {
print(restrinction.objectId);
} |
I found an solution. That breaks List<ParseObject> restrictions = [];
void fetchRestrictions() async {
List<ParseObject> restrictions = user?.get<List<ParseObject>>('restriction');
this.restrictions = restrictions;
} Log
The following code works very well :-) List<ParseObject> restrictions = [];
void fetchRestrictions() async {
final restrictions = user?.get<List<ParseObject>>('restriction');
this.restrictions.clear();
for (final ParseObject restriction in restrictions) {
this.restrictions.add(restriction);
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
how I can get the relations of an array. So I have an user class and this class has field restriction with an array of relations. How I can get the data?
[ { "__type": "Pointer", "className": "Restriction", "objectId": "l15bD1WdrJ" }, { "__type": "Pointer", "className": "Restriction", "objectId": "bD2hGsKetL" } ]
The text was updated successfully, but these errors were encountered: