Skip to content

Commit

Permalink
DOC Fix broken syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 9, 2023
1 parent 294d9a2 commit 4407a5b
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,16 @@ A couple things to note here:

* By assigning a value of `true` to the field, we defer to the model to infer the type for the field. To override that, we can always add a `type` property:

```yaml
MyProject\Models\Product:
fields:
onSale:
type: Boolean
```
```yaml
MyProject\Models\Product:
fields:
onSale:
type: Boolean
```

* The mapping of our field names to the `DataObject` property is case-insensitive. It is a
convention in GraphQL APIs to use lowerCamelCase fields, so this is given by default.

[/notice]

### Bulk loading models
Expand All @@ -239,9 +240,9 @@ elemental: # An arbitrary key to define what these directives are doing
load:
inheritanceLoader:
include:
- DNADesign\Elemental\Models\BaseElement
- DNADesign\Elemental\Models\BaseElement
exclude:
- MyApp\Elements\MySecretElement
- MyApp\Elements\MySecretElement
# Add all fields and read operations
apply:
fields:
Expand Down

0 comments on commit 4407a5b

Please sign in to comment.