My node backend is connected to Firestore. I need to perform this MySQL equivalent query:
SELECT * FROM offer WHERE zip = '..' AND category = '...' AND status != 1 ORDER BY ..
So far I tried below Firebase query:
const docRef = db.collection('ads');
await docRef.where('status', '<', 4).where('status', '>', 5).orderBy('status')
.where('zip', '==', searchTerm).where('subCategory', '==', subCategory).orderBy('createdAt')
This query returns empty array. I'm fairly new to Firebase.