Setting the Scene
Suppose you have the following 2 persistent classes that are both JSON-enabled (i.e. extends %JSON.Adaptor or %pkg.isc.rest.model.adaptor)
Class Test.Employee Extends (%Persistent, %pkg.isc.rest.model.adaptor) {
Parameter RESOURCENAME = "employee";
Parameter firstName As %String;
Parameter lastName As %String;
Relationship projects As Test.Project [ Cardinality = many, Inverse = employee) ];
}
Class Test.Project Extends (%Persistent, %pkg.isc.rest.model.
.png)



