Hello, because I didn’t figured out from the docs what the title states, I was wondering if there’s any way to get the allowed values of a field.
In my example, I have a tags
field with a set of defaults, and I would extract them (with GraphQL would be awesome) in order to dynamically populate some parts of a front-end:
{
fields {
{
"name": "tags",
"properties": {
"isRequired": true,
"fieldType": "Tags",
"editor": "Tags",
"allowedValues": [
"foo",
"bar",
// etc.
],
"label": "Tags"
},
"partitioning": "invariant"
},}
}
Is this possible?
Thanks in advance.