UNPKG

@budibase/server

Version:
113 lines (112 loc) 2.59 kB
{ "operation": "READ", "resource": { "fields": [ "a.executorid", "a.taskname", "a.taskid", "a.completed", "a.qaid", "b.productname", "b.productid" ] }, "filters": { "oneOf": { "taskid": [1, 2] } }, "relationships": [ { "tableName": "products", "column": "products", "through": "products_tasks", "from": "taskid", "to": "productid", "fromPrimary": "taskid", "toPrimary": "productid", "aliases": { "products_tasks": "c", "products": "b", "tasks": "a" } } ], "extra": { "idFilter": {} }, "table": { "type": "table", "_id": "datasource_plus_44a967caf37a435f84fe01cd6dfe8f81__tasks", "primary": ["taskid"], "name": "tasks", "schema": { "executorid": { "type": "number", "externalType": "integer", "autocolumn": false, "name": "executorid", "constraints": { "presence": false } }, "taskname": { "type": "string", "externalType": "character varying", "autocolumn": false, "name": "taskname", "constraints": { "presence": false } }, "taskid": { "type": "number", "externalType": "integer", "autocolumn": true, "name": "taskid", "constraints": { "presence": false } }, "completed": { "type": "boolean", "externalType": "boolean", "autocolumn": false, "name": "completed", "constraints": { "presence": false } }, "qaid": { "type": "number", "externalType": "integer", "autocolumn": false, "name": "qaid", "constraints": { "presence": false } }, "products": { "tableId": "datasource_plus_44a967caf37a435f84fe01cd6dfe8f81__products", "name": "products", "relationshipType": "many-to-many", "through": "datasource_plus_44a967caf37a435f84fe01cd6dfe8f81__products_tasks", "type": "link", "_id": "c3b91d00cd36c4cc1a347794725b9adbd", "fieldName": "productid", "throughFrom": "productid", "throughTo": "taskid" } }, "sourceId": "datasource_plus_44a967caf37a435f84fe01cd6dfe8f81", "sourceType": "external", "primaryDisplay": "taskname", "sql": true, "views": {} }, "tableAliases": { "tasks": "a", "products": "b", "products_tasks": "c" } }