I want to do a WHERE foo = bar AND something = also_something
in firebase
export const getAllRoomsWhichHaveUnreadMessages = (currentUserId) => {
return query(
roomsRef,
where(USERS_PATH, 'array-contains', currentUserId),
where('unreadCount', '>', 0)
)
}
How do I chain WHERE
s and also how do I retrieve them? My above code works but it only outputs a query, how do I run
the query ?