Hi,
I am developing a mobile app using React Native and MongoDB Realm. For backend sync using MongoDB atlas.
When schema is changed at client side and synced to atlas server, getting the following error:
“The following changes cannot be made in additive-only schema mode:
Property ‘Users.FirstName’ has been made optional.”
Schema is as follows:
export const Users = {
name: ‘Users',
primaryKey: '_id',
properties: {
_id: "objectId",
_partition: "string",
FirstName: 'string?',
LastName: 'string?',
MobileNumber: 'int',
}
};
In a production application, when we made some changes in the schema like “FirstName” field is required previously & later, we make it optional, and we have 10000 of users using the app, then how can we handle this situation.
Regards