{
  "meta": {
    "$_GET": [
      {
        "type": "text",
        "name": "sort"
      },
      {
        "type": "text",
        "name": "dir"
      },
      {
        "type": "text",
        "name": "filter"
      }
    ]
  },
  "exec": {
    "steps": {
      "name": "query",
      "module": "dbconnector",
      "action": "select",
      "options": {
        "connection": "authdb",
        "sql": {
          "type": "select",
          "columns": [
            {
              "table": "roles",
              "column": "id"
            },
            {
              "table": "roles",
              "column": "name"
            }
          ],
          "params": [],
          "table": {
            "name": "roles"
          },
          "primary": "id",
          "joins": [],
          "wheres": {
            "condition": "OR",
            "rules": [
              {
                "id": "roles.isDepartment",
                "field": "roles.isDepartment",
                "type": "boolean",
                "operator": "not_equal",
                "value": true,
                "data": {
                  "table": "roles",
                  "column": "isDepartment",
                  "type": "boolean",
                  "columnObj": {
                    "type": "boolean",
                    "primary": false,
                    "unique": false,
                    "nullable": true,
                    "name": "isDepartment"
                  }
                },
                "operation": "<>",
                "table": "roles"
              },
              {
                "id": "roles.isDepartment",
                "field": "roles.isDepartment",
                "type": "boolean",
                "operator": "is_null",
                "value": null,
                "data": {
                  "table": "roles",
                  "column": "isDepartment",
                  "type": "boolean",
                  "columnObj": {
                    "type": "boolean",
                    "primary": false,
                    "unique": false,
                    "nullable": true,
                    "name": "isDepartment"
                  }
                },
                "operation": "IS NULL",
                "table": "roles"
              }
            ],
            "conditional": null,
            "valid": true
          },
          "query": "select `id`, `name` from `roles` where `roles`.`isDepartment` <> ? or `roles`.`isDepartment` is null order by `name` ASC",
          "orders": [
            {
              "table": "roles",
              "column": "name",
              "direction": "ASC"
            }
          ]
        }
      },
      "output": true,
      "meta": [
        {
          "type": "number",
          "name": "id"
        },
        {
          "type": "text",
          "name": "name"
        }
      ],
      "outputType": "array"
    }
  }
}