-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update column types table #25
base: v4.4
Are you sure you want to change the base?
Conversation
| `link` | `array` | `[{"row_id": "Mr-3QnQ5Q-eeEqFBevtOkw", "display_value": "Google News"}]` | | | ||
| `link` | `array` | `["Mr-3QnQ5Q-eeEqFBevtOkw"]` | Array of row IDs. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just double-checked this and the format depends on the endpoint (listRowsDeprecated
vs listRows
).
The new listRows
endpoint actually returns an array of objects.
| `button` | `null` | `null` | Always `null` | | ||
| `link` | `array` | `[{"row_id": "Mr-3QnQ5Q-eeEqFBevtOkw", "display_value": "Google News"}]` | | | ||
| `link` | `array` | `["Mr-3QnQ5Q-eeEqFBevtOkw"]` | Array of row IDs. | | ||
| `link-formula` | `array`, `string` or `integer` | `["Todo 1", "Todo 2"]`, `Open Pending`, `2` | The output depends on the link formula type. Lookup returns an array, rollup returns a string and findmax returns an integer. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked all link-formula types and the output differs wildly:
Type | /api-gateway | /dtable-server |
---|---|---|
lookup | array<string> |
string (CSV) |
countlinks | integer |
string (numeric) |
rollup | integer |
string (numeric) |
findmax/findmin | array<integer> |
string (numeric) |
(tested using 4.4.10 @ stage)
| `checkbox` | `boolean` | `true` | | | ||
| `rate` | `integer` | 4 | | ||
| `rate` | `integer` | 4 | | | ||
| `geolocation` | `object` | `{"lng": 8.23..., "lat": 50.00...}` or<br/>`{"country_region": "Sweden"}` | Depending on column setting. | | ||
| `formula` | `string` | `"Albert Summer"` | Contains only the result of the formula. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The /api-gateway
endpoints can also return integer
or boolean
values for formula
columns.
The /dtable-server
endpoints seem to return strings in all cases.
4bdaceb
to
f48b5ec
Compare
No description provided.