We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The fromEjson() function throws when using Set/RealmSet. The following error will be encountered:
"Missing decoder for type Set"
Define a Realm model with a field of type Set.
Instantiate the model and then call the fromEjson(object) function on the object.
Flutter 3.22.2
Atlas Device Sync
Flutter Application
Any
class $MyClass { @PrimaryKey() @mapto('_id') late ObjectId id; late Set<String> mySet; } // call fromEjson will throw "Missing decoder for type Set" final realmObject = fromEjson({ '_id' : { '$oid' : ObjectId().hexString, }, 'mySet' : {'value1', 'value2'}, });
No response
The text was updated successfully, but these errors were encountered:
➤ PM Bot commented:
Jira ticket: RDART-1080
Sorry, something went wrong.
nielsenko
Successfully merging a pull request may close this issue.
What happened?
The fromEjson() function throws when using Set/RealmSet. The following error will be encountered:
"Missing decoder for type Set"
Repro steps
Define a Realm model with a field of type Set.
Instantiate the model and then call the fromEjson(object) function on the object.
Version
Flutter 3.22.2
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Flutter Application
Client OS and version
Any
Code snippets
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: