I construct below payload in MarkLogic REST API:
"query": {
"jsonPropertyRangeQuery": {
"property": "rangeChange",
"operator": ">",
"value": 60
}
}
It throws error: "messageCode":"MANAGE-INVALIDPAYLOAD", "message":"MANAGE-INVALIDPAYLOAD: (err:FOER0000) Payload has errors in structure, content-type or values. XDMP-QUERYNODE: cts:query(object-node{\"property\":text{\"rangeChange\"}, \"operator\":text{\">\"}, \"value\":text{\"60\"}}) -- Query element object-node{\"property\":text{\"rangeChange\"}, ...} contains unknown child"}}
If I do below, then it goes through
"query": {
"jsonPropertyValueQuery": {
"property": "city",
"value": "Chicago"
}
}
Any thought?