Skip to content

Commit 12ecd81

Browse files
committed
Remove customResolver checks from migration guide
1 parent e05f39d commit 12ecd81

File tree

1 file changed

+0
-22
lines changed
  • docs/modules/ROOT/pages/guides/v4-migration

1 file changed

+0
-22
lines changed

docs/modules/ROOT/pages/guides/v4-migration/index.adoc

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -188,28 +188,6 @@ type User {
188188
}
189189
----
190190

191-
[[customResolver-checks]]
192-
==== Checks for custom resolvers
193-
194-
Previously, if no custom resolver was specified for a `@computed` field when creating an instance of Neo4jGraphQL, no errors would be thrown when generating the schema.
195-
However, it is likely that the lack of a custom resolver would lead to errors at runtime. It is preferable to fail fast in this case as it is easier to debug and makes it less likely that bugs will make it into production.
196-
197-
As a result, checks are now performed to ensure that every `@customResolver` field has a custom resolver provided. If not the library will throw an error during schema generation.
198-
199-
These checks may not always be required or desirable. If this is the case, they can be disabled using the new xref::guides/v4-migration/index.adoc#startup-validation[`startupValidation`] config option:
200-
201-
[source, javascript, indent=0]
202-
----
203-
const neoSchema = new Neo4jGraphQL({
204-
typeDefs,
205-
config: {
206-
startupValidation: {
207-
resolvers: false
208-
},
209-
},
210-
})
211-
----
212-
213191
[plural-migration]
214192
=== `plural` argument removed from `@node` and replaced with `@plural`
215193

0 commit comments

Comments
 (0)