Home > @infiniteobjects/models > Repository > instanceFromSchema
Creates and instance of from the given plain object (partial schema)
Signature:
instanceFromSchema(data: Schema<EntityType>): EntityType;
Parameter | Type | Description |
---|---|---|
data | Schema<EntityType> | Schema data |
Returns:
EntityType
Either an Entity or a Promise that will resolve in to an Entity if useDefaultData=true