I'm trying to import json to my cloud firestore collection, which contains nested array, but even with FieldValue.arrayUnion function getting error "Invalid data. Nested arrays are not supported".
FirebaseFirestore.instance
.collection('universities2')
.doc(value.docs.first.id)
.update({
'departments': FieldValue.arrayUnion([
json["Sayfa1"][0][x]["department"][0]["name"],
json["Sayfa1"][0][x]["department"][0]["fields"]
])
});
Is there any way to implement this ?