Is there a way to create a ModelManager using schema and definition Ids that have not been deployed, but are known?
Scenario - I have several schemas/definitions that I know the IDs for. I want to add them to a manager so I can create a modelJSON file that the app can then use. Not sure how to create that modelJSON (using manager.toJSON()) without using createSchema/createDefinition.
Have tried creating a model using:
let model = new DataModel({ceramic: appClient, aliases})
(which works) - and then adding that to a manager I’ve created using:
manager.addModel(model)
but that fails with a “cannot convert undefined or null to object”. As per screenshot, looks to be a valid model so not sure where I’m going wrong.