From 07dea64bf6e906cfd4511af335e6cf2e7ca74539 Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Wed, 24 Feb 2021 00:15:04 +1300 Subject: [PATCH] DOCS: Document removal of exclude directive --- .../01_dataobject_model_type.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/en/02_Developer_Guides/19_GraphQL/02_working_with_dataobjects/01_dataobject_model_type.md b/docs/en/02_Developer_Guides/19_GraphQL/02_working_with_dataobjects/01_dataobject_model_type.md index fb6dd462d..c51418765 100644 --- a/docs/en/02_Developer_Guides/19_GraphQL/02_working_with_dataobjects/01_dataobject_model_type.md +++ b/docs/en/02_Developer_Guides/19_GraphQL/02_working_with_dataobjects/01_dataobject_model_type.md @@ -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