is there a way to populate nested fields with the new query engine of v4?
The docs only show the first level.
In may case I have repeatable component accessories containing a relation to collection accessory (about 30), which means I would start 30 more queryies to fetch them by id.
"calendar is repeatable component with few text, and integer fields, and relationship to many “reservations”
when i run code i get all information except “reservations”
do you maybe know what I’m doing wrong? Thank you in advance
@WardenCommander For the nested query I don’t think you need the upper level calendar the way you have described the relationship. I think your query should either be one of the two following based on how your data is nested.
In regards to updating nested data, most of my content we update from the admin UI so it is handled automatically so I’m not sure how to really do it currently. Because it is open source someone can probably dig into the source code to understand how the core function works.
Hello @joshbuilds thank you for update, first option is what i was looking for, i need upper level of calendar as each day can have multiple reservations, and i want to know what reservations are on what day.
I’m doing all this so that when i create new entry in “reservations” collection type, it automatically close those days in corresponding calendar