This PR updates the schema types for the FormField.choices and FormField.inputs fields to their respective implementing type, instead of the interface.
Why
... on OptionField {
adminLabel
canPrepopulate
choices {
... on OptionFieldChoice { # 👈 This is unnecessary and redundant. We **know** this b/c its on the OptionField
formattedPrice
isSelected
price
text
value
}
# ✔️ Now we can query it directly on the `choice`
formattedPrice
isSelected
price
text
value
}
What
This PR updates the schema types for the
FormField.choices
andFormField.inputs
fields to their respective implementing type, instead of the interface.Why
How
Uses the new
Utils::overload_graphql_field_type
to avoid the validation issues ingraphql_register_field()
Testing Instructions
Additional Info
Checklist: