dbaghdanov
02/05/2019, 7:57 PMfilters
vs filterExpression
.
the docs say there's a filterExpression
property. But instead you pass your filter expression into the filters
property.
search.create({
type: "my_custom_type",
filters: [["customfield", "is", "ok"], "and", ["otherfield", "is", "finetoo"]]
But this will not work (well it will, it'll just return all your records)
search.create({
type: "my_custom_type",
filterExpression: [["customfield", "isnot", "ok"], "and", ["otherfield", "is", "notfinetoo"]]