Closed benfeather closed 10 months ago
When retrieving values from the GraphQL API, it is not possible to determine the field type assigned to the column.
For example, if I have a table configured like this:
And request the data using GraphQL, this is the response:
Add a "type" property to the table columns that outputs the field type. Using the example above, the output would be:
{ "table": { "rows": [ ["1", "1", "1", "1"], ["0", "0", "", ""] ], "columns": [ { "heading": "Number", "type": "number" }, { "heading": "Text", "type": "text" }, { "heading": "Checkbox", "type": "checkbox" }, { "heading": "Switch", "type": "switch" } ] } }
Added for the next release. To get this early, run composer require verbb/tablemaker:"dev-craft-4 as 4.0.7".
composer require verbb/tablemaker:"dev-craft-4 as 4.0.7"
Legend. Works perfectly.
What are you trying to do?
When retrieving values from the GraphQL API, it is not possible to determine the field type assigned to the column.
For example, if I have a table configured like this:
And request the data using GraphQL, this is the response:
What's your proposed solution?
Add a "type" property to the table columns that outputs the field type. Using the example above, the output would be: