Schema Validation failed

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", }, };
Screenshot 2021-02-04 at 23.15.09

and the function I’m expecting everything from:
Screenshot 2021-02-04 at 23.15.52

Maybe nothing but… Item vs Items?

oh sorry I managed to fix everything

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.