I have two schema objects one is a “header” object and another is the “detail” object. They have a 1 to many relation between these two objects, one header can have one or more details.
When I generate data I get the following result
{
"id": 353,
"name": "fledgling",
"elements": [
{
"id": 167,
"headerId": 692,
"name": "dolores"
},
{
"id": 593
"headerId": 377,
"name": "confugo"
}
]
}
Is there a way to automatically generate data where the headerId is the same as the Id. Like this:
{
"id": 353,
"name": "fledgling",
"elements": [
{
"id": 167,
"headerId": 353,
"name": "dolores"
},
{
"id": 593
"headerId": 353,
"name": "confugo"
}
]
}