Skip to content

Instantly share code, notes, and snippets.

@bheyde
Created August 14, 2018 17:26
Show Gist options
  • Save bheyde/b247dfa5694e98aaf65b58c9467f9623 to your computer and use it in GitHub Desktop.
Save bheyde/b247dfa5694e98aaf65b58c9467f9623 to your computer and use it in GitHub Desktop.
Parenthetical comparisons can be accomplished using the "SUBWHERE" operator and special field names "search", "search_AND" and "search_OR"
"Filter":
[
{
"name": "search",
"value":
[
{
"field": "ship_lname",
"operator": "EQ",
"value": "Burchmore"
},
{
"field": "search_OR",
"operator": "SUBWHERE",
"value":
[
{
"field": "ship_fname",
"operator": "EQ",
"value": "Ryan"
},
{
"field": "ship_lname",
"operator": "EQ",
"value": "Guisewite"
}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment