Join Slack
Powered by
Let’s say I have a list of objects and each such o...
# exposed
s
Skovisen
01/10/2024, 7:32 AM
Let’s say I have a list of objects and each such object has a list of some other type. Is there a way to do some sort of nested insert? E.g.
Copy code
data class Parent( ... data, val children: List<Child> ) data class Child( ... data, )
I would like to insert a list of parents and for each parent insert a list of children with a reference to their parent.
Open in Slack
Previous
Next