How to save a document with a dynamic id into Cloud Firestore? Always changing
问题 I am using Cloud Firestore as my database This is my form codes on my webpage that creates a new document into my Cloud Firestore collection called "esequiz". So how do I code it in such a way that it always plus 1 to the number of documents there are in the database? And also set a limit to having the amount of documents inside the database form.addEventListener('submit', (e) => { e.preventDefault(); db.collection('esequiz').add({ question: form.question.value, right: form.right.value, wrong