Incompatible property

Hey there! I’m trying to sync data from the atlas. Here are some problems I collided with:

  1. 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!

Just a guess, but do you maybe have FlexibleSync enabled instead of the old partition strategy? New apps default to FlexibleSync, and you probably want to be using that in your code too because it’s slick.