Can anyone share specific instances of utilizing realm with React Native and TypeScript while incorporating embedded objects?
Typically, you can supply a partial object containing properties to be sent to realm for CRUD operations:
realm.write(() => {
realm.create<SomeSchemaObject>(
SchemaObject.schema.name,
{
id: 1,
someListType: ??? // where someListType represents an embedded schema object.
},
UpdateMode.Modified
)
}
When using typescript and supplying an array of partial properties for the embedded object, I encounter type errors. Despite extensive searching through the Realm-JS repository and documentation, examples featuring the use of TypeScript and embedded objects are nowhere to be found.