Client APIs
API Reference Overview
Retrieves the child type of the given union member at the specified index.  
The result must be freed with `duckdb_destroy_logical_type`.  
###### Syntax {#docs:api:c:api::syntax}  
```c
duckdb_logical_type duckdb_union_type_member_type(
duckdb_logical_type type,
idx_t index
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `type`: The logical type object
* `index`: The child index  
###### Return Value {#docs:api:c:api::return-value}  
The child type of the union member. Must be destroyed with `duckdb_destroy_logical_type`.  
<br>