Skip to content

Commit 6cb8a65

Browse files
committed
More customResolver docs changes from v4
1 parent 12ecd81 commit 6cb8a65

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

docs/modules/ROOT/pages/custom-resolvers.adoc

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ type User implements UserInterface {
7070
}
7171
----
7272

73-
The following resolvers definition would be invalid:
73+
The following resolvers definition would cause a warning to be logged:
7474

7575
[source, javascript, indent=0]
7676
----
@@ -83,7 +83,8 @@ const resolvers = {
8383
};
8484
----
8585

86-
Instead, the following resolvers definition would be required:
86+
The following resolvers definition would silence the warning:
87+
8788
[source, javascript, indent=0]
8889
----
8990
const resolvers = {
@@ -95,19 +96,7 @@ const resolvers = {
9596
};
9697
----
9798

98-
These checks may not always be required or desirable. If this is the case, they can be disabled using the `startupValidation` config option:
99-
100-
[source, javascript, indent=0]
101-
----
102-
const neoSchema = new Neo4jGraphQL({
103-
typeDefs,
104-
config: {
105-
startupValidation: {
106-
resolvers: false
107-
},
108-
},
109-
})
110-
----
99+
Mismatches between the resolver map and `@customResolver` directives will always be logged to the console as a warning.
111100

112101
[[custom-resolvers-computed]]
113102
=== `@computed`

0 commit comments

Comments
 (0)