Skip to content

Commit 9850281

Browse files
authored
Fix @customResolver requires type in docs (#21)
* fix @customResolver requires type in docs * Use actual type 🤦‍♂️
1 parent d3ace82 commit 9850281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ROOT/pages/custom-resolvers.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ The inclusion of the fields `firstName` and `lastName` in the `requires` argumen
4444
----
4545
"""Informs @neo4j/graphql that a field will be resolved by a custom resolver, and allows specification of any field dependencies."""
4646
directive @customResolver(
47-
"""Fields that the custom resolver will depend on."""
48-
requires: [String!]
47+
"""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."""
48+
requires: SelectionSet
4949
) on FIELD_DEFINITION
5050
----
5151

0 commit comments

Comments
 (0)