I tried to read most of the similar questions(and there are a lot) but couldn't find any solution I could understand.
The document structure as mentioned below-
[
{RoomID:Room1,
Boards:[
{BoardID:Board1,
Devices:[
{DeviceID:Dev1}
....]
}
....]
}
.....]
How to add a new Device after querying both RoomID and BoardID?