Replies: 1 comment
-
nvm, i figure out what's wrong |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I encounter this error
Error: firebase.firestore().collection().where() Invalid query. All where filters with an inequality (<, <=, >, != or >=) must be on the same field. But you have inequality filters on 'doctor' and 'LastContactDate'
when running the following code
useEffect(() => { const subscriber = firestore() .collection("priorityListFakeData") .where("doctor", "!=", "kkkssslll") .where("LastContactDate", "<", today) .onSnapshot((querySnapshot) => { } }
pretty sure that i already added the corresponding index into firestore.

Can someone help me out?
Beta Was this translation helpful? Give feedback.
All reactions