You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/guides/v4-migration/index.adoc
-22Lines changed: 0 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,28 +188,6 @@ type User {
188
188
}
189
189
----
190
190
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
-
213
191
[plural-migration]
214
192
=== `plural` argument removed from `@node` and replaced with `@plural`
0 commit comments