Page History
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Finding Items Registered by Particular Users
The following example compound query finds only the items registered by the jane_doe user or the john_doe user:
Code Block |
---|
{
"compoundQuery": {
"operator": "OR",
"compoundQueries": [
{
"operator": "OR",
"queries": [
{
"attribute": "registered_by",
"value": "jane_doe",
"operator": "EQUAL"
},
{
"attribute": "registered_by",
"value": "john_doe",
"operator": "EQUAL"
}
]
}
]
},
} |
Multiple Nested Compound Queries
The following example contains multiple nested compound queries:
Code Block |
---|
{ "compoundQuery": { "compoundQueries": [{ "operator": "AND", "queries": [{ "attribute": "sample_name", "value": "%Sample1a%", "operator": "LIKE" }, { "attribute": "data_generator", "value": "%Jane Doe", "operator": "EQUAL" }] }, { "operator": "OR", "queries": [{ "attribute": "initial_sample_volume_ul", "value": "%1000%", "operator": "NOT_EQUAL" }, { "attribute": "source_file_size", "value": "%90000000%", "operator": "NUM_LESS_THAN" }] }, { "operator": "OR", "queries": [{ "attribute": "source_file_size", "value": "%80000000000000&", "operator": "NUM_LESS_OR_EQUAL" }, { "attribute": "source_file_size", "value": "%3715000%", "operator": "NUM_GREATER_OR_EQUAL" }] }, { "operator": "OR", "queries": [{ "attribute": "source_file_size", "value": "%3715000&", "operator": "NUM_GREATER_THAN" }] } ], "page": 1 } } |