-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
Goals
Create a synced schema based on a current local realm schema. The schema contains relationships
Expected Results
When running MongoDb Realm in devmode, the schema should be generated correctly.
Actual Results
Sync fails since it says that it is an invalid schema change.
"Sync: Connection[2]: Session[2]: Received: ERROR "Invalid schema change (UPLOAD): destructive schema change: cannot change field "deletedPropertyName" in table "AnObject" from "string" to a relationship" (error_code=225, try_again=0)"
It looks like all relationships in the generated schema is of type "string" instead of relationship and this will cause sync to fail even though I am running the app in dev mode with the goal of generating a schema
Steps for others to Reproduce
1: Create an realm schema containing a relationship
2: Run MongoDb Realm in devmode
Version of Realm and Tooling
Realm framework version: 10.7.5