Firebase firestore query: “Error: 9 FAILED_PRECONDITION: The query requires an index. You can create it here”
问题 I have what I thought was a simple query on a collection called 'email': const emailQuery = admin .firestore() .collection('email') .where('sendAt', '>=', new Date()) .where('orderId', '==', doc.orderId) .where('brandId', '==', doc.brandId); I'm receiving the error in the subject of this post, indicating that I need to create an index for this query. I've tried creating a couple for the relevant fields, but I'm unsure of why it's needed since only one field is ordered--and the error remains