-
-
Notifications
You must be signed in to change notification settings - Fork 214
Closed
Labels
type:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server and the Parse Flutter SDK.
Issue Description
Adding or removing values from or into an array using (setAdd, setAddAll, setAddUnique, setAddAllUnique, setRemove, setRemoveAll) in ParseObject and then calling get returns _Map<String, dynamic>
Steps to reproduce
- create
ParseObject - add a value to an array using
setAddfunction for example - get the array using the array key with
get("key") - the result of calling
get("key")isMapwhich is not expected
code snippet:
final dietPlansObject = ParseObject("Diet_Plans");
dietPlansObject.setAdd("arrayKey", 1);
final array = dietPlansObject.get("arrayKey");
print(array.runtimeType); // _Map<String, dynamic>Actual Outcome
_Map<String, dynamic>
Expected Outcome
An Iterable that contains all the added values and does not contain the removed ones
Environment
Parse Flutter SDK
- SDK version:
3.1.15 - Operating system version:
any
Server
- Parse Server version:
any
Logs
type '_Map<String, dynamic>' is not a subtype of type 'List?' in type cast
package:parse_server_sdk/src/objects/parse_base.dart 223:36 ParseBase.get
test/src/objects/parse_object_test.dart 711:39 main...
parse_object_test.dart:711
Metadata
Metadata
Assignees
Labels
type:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed