I have a structure like this
{
comments: {
...anything here
},
flags: {
flag1: true,
flag2: false
}
}
is there a way to query an exact object in firebase?
I've tried to use it like this.
const documents = await adminSdk.firestore()
.collection('posts')
.where('flags', '===', { flag1: true, flag2: false })
.get();
console.log(documents.data());
but it returns nothing.
is there a way that I messed up or it's just out of scope for Firebase to do it like this?