In your documentation I see references to Models (plural) and the function get(), but I don't see any examples of dealing with multiple models.
So, is it possible to define multiple models for a given datasource?
More importantly, can the models be bound to a property within the schema?
i.e.
If the schema has two arrays:
{ Data :
{
Items: [ { ... } ],
Persons: [ { ... } ]
}
}
Such that Schema is bound to Data, model 1 is bound to Items, and model 2 is bound to Persons.
If this is possible, could someone post an example of how to do this?
So, is it possible to define multiple models for a given datasource?
More importantly, can the models be bound to a property within the schema?
i.e.
If the schema has two arrays:
{ Data :
{
Items: [ { ... } ],
Persons: [ { ... } ]
}
}
Such that Schema is bound to Data, model 1 is bound to Items, and model 2 is bound to Persons.
If this is possible, could someone post an example of how to do this?