Merge pull request #9870 from unclecheese/pulls/4/x-clood

DOCS: Document removal of exclude directive
This commit is contained in:
Ingo Schommer 2021-02-26 08:12:11 +13:00 committed by GitHub
commit 229672a49d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,8 +125,8 @@ Page:
#### Customising the input types
The input types, specifically in `create` and `update` can be customised with a whitelist
and/or [blacklist](#blacklisted-fields) of fields.
The input types, specifically in `create` and `update` can be customised with a
list of fields, which can include explicitly _disallowed_ fields.
**app/_graphql/models.yml**
```
@ -138,8 +138,9 @@ Page:
title: true
content: true
update:
exclude:
sensitiveField: true
fields:
'*': true
sensitiveField: false
```
### Adding more fields