GraphQL API not supporting double embedded objects in schema

I’m working with App Services and Realm. I’m defining my schema in Realm (typescript) then sync it to App Services. I noticed that when I have the same double embedded object in two collection schemas and I query those two related collections, the further embedded property is null. Sometimes you refresh the query and the value appears, some other times it disappears.

Work around: remove the titles from the embedded objects. Something you can’t do from Realm (or I don’t know how ?) but then you graphQL schema is much more complex and prevents reuse (fragments, …)

The graphQL query (counters.catalog.description.short is not supposed to be null)

Both description properties in the schema are as follow

"description": {
  "bsonType": "object",
  "title": "description",
  "properties": {
    "short": {
      "bsonType": "object",
      "title": "formattedText",
      "properties": {
        "markdown": {
          "bsonType": "string"
        }
      }
    },
    "long": {
      "bsonType": "object",
      "title": "formattedText",
      "properties": {
        "markdown": {
          "bsonType": "string"
        }
      }
    }
  }
},

… in some cases (I got a property where it’s working, and it’s exactly the same schema …). I tried to reduce the case to a minimum, changed all of the property names but the issue stayed.

I created a repo with a minimum App Service app to reproduce the issue + a video showing is :wink: