{
"filter": {
"name": "isVendor",
"comparator": "is equal to",
"values": [1]
}
}
Last active
July 11, 2018 21:45
-
-
Save kevinbull/19130b06983e088b1167dbc5791c78de to your computer and use it in GitHub Desktop.
Filter Shape Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"filter": { | |
"type": "and", | |
"conditions": [{ | |
"type": "or", | |
"conditions": [{ | |
"type": "and", | |
"conditions": [{ | |
"name": "company", | |
"comparator": "is equal to", | |
"values": ["acme"] | |
}, | |
{ | |
"name": "state", | |
"comparator": "is equal to", | |
"values": ["tx"] | |
} | |
] | |
}, | |
{ | |
"type": "and", | |
"conditions": [{ | |
"name": "company", | |
"comparator": "contains", | |
"values": ["Dunder"] | |
}, | |
{ | |
"name": "state", | |
"comparator": "is not equal to", | |
"values": ["tx"] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"name": "isVendor", | |
"comparator": "is equal to", | |
"values": [1] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment