Merge pull request #10371 from bummzack/patch-2

fix: Syntax for declaring enums in YML
This commit is contained in:
Guy Sartorelli 2022-06-28 16:36:46 +12:00 committed by GitHub
commit 8d698067a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -415,9 +415,10 @@ configuration layer.
**app/_graphql/enums.yml**
```yaml
Status:
SHIPPED: Shipped
CANCELLED: Cancelled
PENDING: Pending
values:
SHIPPED: Shipped
CANCELLED: Cancelled
PENDING: Pending
```
See the [Enums, unions, and interfaces](/developer_guides/graphql/working_with_generic_types/enums_unions_and_interfaces/#enum-types)