
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
@steedos/filters
Advanced tools
过滤条件可用于对业务数据进行过滤。比如:
实例:
可以在当前过滤条件的基础上取反,例如:
多个过滤器可以通过“与(and)”、“或(or)”操作进行组合,例如:
如果不指定“与(and)”、“或(or)”操作,系统默认按照“与(and)”操作执行过滤。所以下两种写法结果相同:
运算符为"="时,条件自动按"or"裂变连接成多个过滤条件,类似实现了"in"操作功能,所以下两种写法结果相同:
运算符为"<>"时,条件自动按"and"裂变连接成多个过滤条件,所以下两种写法结果相同:
运算符为"between"时,条件自动转换成">="及"<="运算符对应的过滤条件,以下各组效果相同:
between只支持数值及日期时间类型,且过滤值必须是两个元素的数组格式
其他情况一律自动按"or"裂变连接成多个过滤条件
过滤条件中允许指定当前状态相关属性值为value
实例:
[["object_name", "=", "project_issues"]]
等效于:
{
"field": "object_name",
"operation": "=",
"value": "project_issues"
}
支持两种function方式:
filters: ()->
return [[["object_name","=","project_issues"],'or',["object_name","=","tasks"]]]
filters: [["object_name", "=", ()->
return "project_issues"
]]
或
filters: [{
"field": "object_name"
"operation": "="
"value": ()->
return "project_issues"
}]
如果多个查询条件并存的话,默认取"and"运算符连接起来的过滤结果。
日期和时间类型的字段,在数据库中保存的都是UTC时间。其中日期类型字段对应的是00:00:00。
查询日期时间类型字段时,必须先把时间转换为UTC时间格式再执行查询。
例如想要查询 创建日期为北京时间下午13:00以前的文档,需要先将北京时间转换为GMT时间再执行查询。
[["created","<=","2019-08-06T07:00:00Z"]]
FAQs
filters lib for steedos
The npm package @steedos/filters receives a total of 2,453 weekly downloads. As such, @steedos/filters popularity was classified as popular.
We found that @steedos/filters demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.