Hi I want to know if I can add items into a subdocument which does not exist in the subdocument yet.
I tried below code but it simply fails when an existing item is encountered. I just want to neglect these items.
Getting the subdocument and checking unique items is not a good option for me since the subdocument is really big.
.arrayAddUnique(“devices”, deviceEntities.toArray(), subdocOptionsBuilder)