Skip to content

Commit

Permalink
Merge branch '4' into 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 9, 2023
2 parents a21c468 + 64a085e commit a586035
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,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 @@ -233,9 +234,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 a586035

Please sign in to comment.