|
- {
- "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": "AND",
- "rules": [
- {
- "id": "roles.isDepartment",
- "field": "roles.isDepartment",
- "type": "boolean",
- "operator": "equal",
- "value": true,
- "data": {
- "table": "roles",
- "column": "isDepartment",
- "type": "boolean",
- "columnObj": {
- "type": "boolean",
- "primary": false,
- "unique": false,
- "nullable": true,
- "name": "isDepartment"
- }
- },
- "operation": "=",
- "table": "roles"
- }
- ],
- "conditional": null,
- "valid": true
- },
- "query": "select `id`, `name` from `roles` where `roles`.`isDepartment` = ? order by `name` ASC",
- "orders": [
- {
- "table": "roles",
- "column": "name",
- "direction": "ASC"
- }
- ]
- }
- },
- "output": true,
- "meta": [
- {
- "type": "number",
- "name": "id"
- },
- {
- "type": "text",
- "name": "name"
- }
- ],
- "outputType": "array"
- }
- }
- }
|