createSingleRelationshipField
Creates a single relationship field for Payload CMS, specifying the field name, type, label, and whether it is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the field | |
| type | Yes | The type of field | |
| label | Yes | The label shown in the admin UI | |
| required | Yes | Whether this field is required |