Expand on enumerated field data
Some fields are not simply text, or date, or ID. Some fields have enumerated alternative sets. There are 2 arguments involved in these types of fields: the value (or sequence number), and the label (the text associated with the sequence number).
By default, using the fieldData
argument will return the sequence number.
Sample query - Pull the sequence number of an enumerated field
Sample response
To bring the name of the alternative set, use the labels
argument.
Sample query - Bring the sequence number and name of an enumerated field
Sample response
Additional examples
The labels
argument pulls the value of field e_bp_development_cycle_alt
. The field
argument is used to ask for field metadata as part of the data node.
Sample query
Sample response