Skip to content

Commit

Permalink
Merge branch '5.1' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 9, 2023
2 parents 2435e70 + a586035 commit a8c656f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 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
2 changes: 1 addition & 1 deletion en/03_Upgrading/07_Deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ SilverStripe\Core\Injector\Injector:
ErrorLogFileHandler:
class: Monolog\Handler\StreamHandler
constructor:
- "var/www/silverstripe.log"
- "/var/www/silverstripe.log"
- "warning" # warning is the level deprecation warnings are logged as
Psr\Log\LoggerInterface.errorhandler:
calls:
Expand Down

0 comments on commit a8c656f

Please sign in to comment.