List the values an enum column accepts
list_enum_options
Lists every value a database enum type accepts.
Scopedata:readRead only
A column whose type is an enum refuses anything outside this list, so read it before writing that column with create_row or update_row. get_collection_schema names the enum type of each such column in its udtName.
Only a site on the older database, which is Postgres, has enum types, so on the newer database this always answers with an empty list. A type name that does not exist is not refused either: the call succeeds with an empty list, so on the older database an empty result usually means the name was mistyped. See On the older database.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |
enumType |
string | Yes | The enum type name, from get_collection_schema. |