Imagine I have the following destination types:
interface Parent {
name: string;
children: Child[];
}
interface Child {
name: string;
parent: Parent;
}
When defining a schema to map some source to Parent, I can define a second schema for mapping said source to a Child. However, in that second schema, I cannot provide an action for mapping the parent property of the Child, because until the Child mapping is made and the Parent created, we have no reference or value to assign to the property.
Ignoring serialization for a moment, how would you recommend defining schema for mapping to these types?
Imagine I have the following destination types:
When defining a schema to map some source to
Parent, I can define a second schema for mapping said source to aChild. However, in that second schema, I cannot provide an action for mapping theparentproperty of theChild, because until theChildmapping is made and theParentcreated, we have no reference or value to assign to the property.Ignoring serialization for a moment, how would you recommend defining schema for mapping to these types?