数据格式
{
id: 1,
students:[
{"name":"zhang", "password":"123"},
{"name":"li", "password":"456"}
]
}
想根据students的name和password进行逻辑与查询
where({
students: {
name: dbCmd.eq('zhang'),
password: dbCmd.eq('456'),
})
预期结果是空,但实际可以返回,请问正确的写法?
数据格式
{
id: 1,
students:[
{"name":"zhang", "password":"123"},
{"name":"li", "password":"456"}
]
}
想根据students的name和password进行逻辑与查询
where({
students: {
name: dbCmd.eq('zhang'),
password: dbCmd.eq('456'),
})
预期结果是空,但实际可以返回,请问正确的写法?
w***@wineha.club (作者)
感谢
2020-07-13 10:36