Skip to content

Instantly share code, notes, and snippets.

@kevinbull
Last active July 11, 2018 21:45
Show Gist options
  • Save kevinbull/19130b06983e088b1167dbc5791c78de to your computer and use it in GitHub Desktop.
Save kevinbull/19130b06983e088b1167dbc5791c78de to your computer and use it in GitHub Desktop.
Filter Shape Examples
{
"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]
}
]
}
}
{
	"filter": {
		"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