I’m getting this error when trying to save items in the database
Schema validation failed due to the following erro…hronized Realm but none was found for type 'Item'
and
"Schema validation failed due to the following errors: -There must be a primary key property named '_id' on a synchronized Realm but none was found for type 'Item'"
this is how I wrote my schema:
export const ItemSchema = { name: "Item", properties: { _id: "objectId", itemCode: "string", itemDescription: "string", itemPrice: "string", partition: "string", }, };
and the function I’m expecting everything from: