How can I select all docs that do not have a certain field? I have the following structure:
user = {
firstName: 'blabla',
lastName: 'bloblo',
address: {
city: 'xxxx',
state: 'xxx'
}
}
I have tried comparing with null, but wasn't successful.
let db = firebase.firestore();
let querySnapshot = await db
.collection("users")
.where("address", "==", null)
.get();