Hey there! I’m trying to sync data from the atlas. Here are some problems I collided with:
- Partitional syncing can’t find any objects,
realm.All<Foo>()
returns a collection
Sample object in the collection:
bar Object
a: "aaa"
b: "bbb"
c: "ccc"
Here’s my schema:
{
"title": "Foo",
"properties": {
"_id": { "bsonType": "string" },
"bar": {
"bsonType": "object",
"additionalProperties": { "bsonType": "string" }
}
}
and c# class:
public class Foo : RealmObject
{
[MapTo("_id")]
[PrimaryKey]
[Required]
public string Id { get; set; }
[MapTo("bar")]
[Required]
public IDictionary<string, string> Bar { get; }
}
I also tried to use RealmDictionary<string>
but the result was the same.
Thanks!