I’ve created a change event whenever there’s a selection on the father and i can see the Id of the selected father on the console but no option on the children dropdown.
Note: Since this is not an array and I realized that I’m not making any sense if I put a drop down list if the data has only one option.
Here’s my schema on the children part:
label: 'Child 1',
label: 'Child 2',
label: 'Child 3',
max of 10 children
I might change the context of the query, like map all the children in family collection instead of one child on drop down list.
You probably might be wondering why I separated all the children field, because I have an import CSV functionality and it’s a pain to import a file if you have a nested fields using simple schema, I have to flatten my schema in order to work the import.
To better understand my use case, the context is for insurance claims( claims collection), so when the father claims his insurance, he has to choose his dependent children which he enrolled in enrollments collection.
How do I map all the children on the above context?