check collection existence - Firestore
问题 Example: I have to make an appointment with the Firestore before proceeding with the event scheduling function. Example in the database: - Companie1 (Document) --- name --- phone --- Schedules (Collection) -----Event 1 -----Event 2 I have a function that performs a new schedule. According to the example. I need to check if the Schedules collection exists. If it does not exist I execute the scheduling function. If I already exist I need to do another procedure. I already used this pattern and