thingworx filter infotable help code example

Example 1: filter query thingworx

var query =
{
    "sorts": [
        {
            "fieldName": "LotID",
            "isAscending": false,
            "isCaseSensitive": false
        },
        {
            "fieldName": "Plant"
        }
    ],
    "filters": {
        "type": "And",
        "filters": [
            {
                "type": "GT",
                "fieldName": "Duration",
                "value": "12"
            },
            {
                "type": "TaggedWith",
                "fieldName": "tags",
                "tags": "MaintenanceIssues:PowerOutage"
            }
        ]
    }
};

Example 2: filter query thingworx

var query = 
{
    "filters": {
        "type": "GT, LT, GE, LE, NE, EQ, LIKE, NOTLIKE",
        "fieldName": "Duration",
        "value": "12"
    }
};