so the menus field stores maps inside of an array/List. But when i want to add a map to menus it replaces all the existing ones with the new one, instead of adding a new one, here my code:
Menu menuObj = Menu(
name: menuName, categories: [
Categories(
name: categoryName,
),
]);
FirebaseFirestore.instance.doc('menus/${FirebaseAuth.instance.currentUser!.uid}')
.set({
'menus': [
menuObj.toJson(),
]
}, SetOptions(merge: true));

setmethod toupdateon firestore instance I guess that should work