Skip to content

Conversation

@simonhammes
Copy link
Collaborator

No description provided.

Comment on lines -168 to +171
| `link` | `array` | `[{"row_id": "Mr-3QnQ5Q-eeEqFBevtOkw", "display_value": "Google News"}]` | |
| `link` | `array` | `["Mr-3QnQ5Q-eeEqFBevtOkw"]` | Array of row IDs. |
Copy link
Collaborator Author

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. |
Copy link
Collaborator Author

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)

| `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. |
Copy link
Collaborator Author

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.

@simonhammes simonhammes force-pushed the update-column-types branch from 4bdaceb to f48b5ec Compare June 7, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant