Sailsjs 蓝图中查找查询的修饰符

Modifiers for find queries in Sailsjs Blueprints

浏览 find where 的 Sailsjs 蓝图文档时,我发现了以下段落:

Instead of filtering based on a specific attribute, you may instead choose to provide a where parameter with a Waterline WHERE criteria object, encoded as a JSON string. This allows you to take advantage of contains, startsWith, and other sub-attribute criteria modifiers for more powerful find() queries.

e.g. ?where={"name":{"contains":"theodore"}}

我在哪里可以找到其他子属性标准修饰符

我相信你想要的部分是查询语言Documentation Here

在那里你会看到目前包含的所有各种标准修饰符:

'<' / 'lessThan'
'<=' / 'lessThanOrEqual'
'>' / 'greaterThan'
'>=' / 'greaterThanOrEqual'
'!' / 'not'
'like'
'contains'
'startsWith'
'endsWith'