i have a collection of users and document contain array of objects, array name is employee i want to filter employee on a given id which is present inside every object
const citiesRef = collection(db, 'user');
const q = query(citiesRef, where('user', 'array-contains', {id: '34445'}));
const querySnapshot = await getDocs(q);
querySnapshot.forEach((doc) => {
console.log(doc.id, ' => ', doc.data());