Data Sources (beta)
Data sources functionality is in beta testing and may be subject to change.
The data source is an attribute of a list field. It allows using collection field values as list field options.
Example
We have a collection of player names called "Team" and want to use names from this collection as available values for a list field named "Captain". Here is how "Team" and "Captain" fields may be specified in project settings JSON.
Attribute source.value_key
specifies that the field name
in the "Team" collection is used to build values for the list.
Restrictions
If the field definition has a
source
attribute then thedata
attribute must have an empty array as a value -"data": []
.
Was this helpful?