We've recently added two new fields to the users
object, making it easier to query and manage custom fields in the user profile:
custom_field_metas
: Retrieves metadata about the custom field, including its type, description, and whether or not it is editablecustom_field_values
: Fetches the values users input into the custom field
The example below retrieves the custom fields' type, description, id, and editability using the custom_field_metas
field. It also retrieves the fields' meta ID and value using the custom_field_values
field.
query {
users (ids: 1234567) {
custom_field_metas {
field_type
description
id
editable
}
custom_field_values {
custom_field_meta_id
value
}
}
}