Skip to content

Commit

Permalink
Update 02_configuring_your_schema.md
Browse files Browse the repository at this point in the history
Added enums to the documentation
  • Loading branch information
AntonyThorpe committed Jul 15, 2022
1 parent bd28ed6 commit 9088fa0
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ SilverStripe\GraphQL\Schema\Schema:
# your queries here
mutations:
# your mutations here
enums:
# your enums here
```

### Avoid config flushes
Expand Down Expand Up @@ -123,6 +125,8 @@ queries:
# your queries here
mutations:
# your mutations here
enums:
# your enums here
```

#### Namespacing your schema files
Expand Down Expand Up @@ -161,6 +165,11 @@ will not work).
# my models here
```

**app/_graphql/enums.yml**
```yaml
# my enums here
```

**app/_graphql/bulkLoad.yml**
```yaml
# my bulk loader directives here
Expand Down Expand Up @@ -193,6 +202,11 @@ for each of your types, e.g. `app/_graphql/types/my-first-type.yml`.
# my models here
```

**app/_graphql/enums/enums.yml**
```yaml
# my enums here
```

**app/_graphql/bulkLoad/bulkLoad.yml**
```yaml
# my bulk loader directives here
Expand Down

0 comments on commit 9088fa0

Please sign in to comment.