From c3a1eba3685eeda54d06f280c77c79b5b1d4938b Mon Sep 17 00:00:00 2001 From: Liam Doodson Date: Fri, 18 Aug 2023 14:49:41 +0100 Subject: [PATCH 1/2] fix @customResolver requires type in docs --- modules/ROOT/pages/custom-resolvers.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/custom-resolvers.adoc b/modules/ROOT/pages/custom-resolvers.adoc index 3b9c1a1b..b59c89b4 100644 --- a/modules/ROOT/pages/custom-resolvers.adoc +++ b/modules/ROOT/pages/custom-resolvers.adoc @@ -45,7 +45,7 @@ The inclusion of the fields `firstName` and `lastName` in the `requires` argumen """Informs @neo4j/graphql that a field will be resolved by a custom resolver, and allows specification of any field dependencies.""" directive @customResolver( """Fields that the custom resolver will depend on.""" - requires: [String!] + requires: String ) on FIELD_DEFINITION ---- From 76b1a4c5159a7fa928c895135608cb61e6605dfc Mon Sep 17 00:00:00 2001 From: Liam Doodson Date: Fri, 18 Aug 2023 15:56:09 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Use=20actual=20type=20=F0=9F=A4=A6=E2=80=8D?= =?UTF-8?q?=E2=99=82=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ROOT/pages/custom-resolvers.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ROOT/pages/custom-resolvers.adoc b/modules/ROOT/pages/custom-resolvers.adoc index b59c89b4..f38e0b0f 100644 --- a/modules/ROOT/pages/custom-resolvers.adoc +++ b/modules/ROOT/pages/custom-resolvers.adoc @@ -44,8 +44,8 @@ The inclusion of the fields `firstName` and `lastName` in the `requires` argumen ---- """Informs @neo4j/graphql that a field will be resolved by a custom resolver, and allows specification of any field dependencies.""" directive @customResolver( - """Fields that the custom resolver will depend on.""" - requires: String + """Selection set of the fields that the custom resolver will depend on. These fields are passed as an object to the first argument of the custom resolver.""" + requires: SelectionSet ) on FIELD_DEFINITION ----