this.afs
.collection('userroutes' + cityid, ref =>
ref.where(
'requestList',
'array-contains',
'str'
)
)
.valueChanges()
.subscribe(data => {
//I get the data
//this works
});`
Run Code Online (Sandbox Code Playgroud)
不工作
this.afs
.collection('userroutes' + cityid, ref =>
ref.where(
'requestList.id', <-- in case of object search what it will
'array-contains',
'ED8r2DWAcyM0sKJiAJxwwAVDm2q2'
)
)
.valueChanges()
.subscribe(data => {
//this do not give any data....
//though this id is present id firebase db
});
Run Code Online (Sandbox Code Playgroud)
不工作
this.afs
.collection('userroutes' + cityid, ref =>
ref.where(
'requestList', <-- in case of object search what …Run Code Online (Sandbox Code Playgroud)