我需要获取属性"type1“、"type2”等“不等于'null'”和“不等于字符串'no_issue'”的数据。我已经尝试了几种不同的方法,但都没有成功,这就是我目前所拥有的不起作用的方法:
[Op.and]: [
{ type1: { [Op.not]: null }},
{ type1: { [Op.ne]: 'no_issue' }},
{ next_item: 'next' }
],
[Op.and]: [
{ type2: { [Op.not]: null }},
{ type2: { [Op.ne]: 'no_issue' }},
{ next_item: 'next' }
],
[Op.and]: [
{ type3: { [Op.not]: null }},
{ type3: { [Op.ne]: 'no_issue' }},
{ next_item: 'next' }
],
[Op.and]: [
{ type4: { [Op.not]: null }},
{ type4: { [Op.ne]: 'no_issue' }},
{ next_item: 'next' }
],
[Op.and]: [
{ type5: { [Op.not]: null }},
{ type5: { [Op.ne]: 'no_issue' }},
{ next_item: 'next' }
]
}
这看起来是正确的,但我显然遗漏了一些东西。提前感谢!
发布于 2021-06-10 03:15:06
Op.and
应为对象数组
[Op.and]: [
{ type1: { [Op.not]: null }},
{ type1: { [Op.ne]: 'no_issue' }}
],...
https://stackoverflow.com/questions/67909955
复制相似问题