I’m getting this error when I try to add new property to the schema:
ending session with error: additive schema change: adding schema for Realm table “article_twitter_meta”, additive changes from clients are restricted when developer mode is disabled (ProtocolErrorCode=225)
My old schema was:
export const articleSchema = {
name: 'article',
properties: {
_id: 'objectId?',
__v: 'int?',
_partition_key: 'string?',
active_search: 'bool?',
analysed_by: 'article_analysed_by[]',
article_meta: 'articlemeta',
catalog_id: 'objectId?',
color_label: 'string?',
content: 'objectId?',
createdAt: 'date?',
flagged: 'bool?',
keywords: 'article_keywords[]',
owner_id: 'objectId?',
rating: 'int?',
read: 'bool?',
status: 'string?',
status_updated_at: 'date?',
subscriptions: 'article_subscriptions[]',
updatedAt: 'date?',
},
primaryKey: '_id',
};
New schema is:
export const articleSchema = {
name: 'article',
properties: {
_id: 'objectId?',
__v: 'int?',
_partition_key: 'string?',
active_search: 'bool?',
analysed_by: 'article_analysed_by[]',
article_meta: 'articlemeta',
catalog_id: 'objectId?',
color_label: 'string?',
content: 'objectId?',
createdAt: 'date?',
flagged: 'bool?',
keywords: 'article_keywords[]',
owner_id: 'objectId?',
rating: 'int?',
read: 'bool?',
status: 'string?',
status_updated_at: 'date?',
subscriptions: 'article_subscriptions[]',
twitter_meta: 'article_twitter_meta',
updatedAt: 'date?',
},
primaryKey: '_id',
};