Skip to content

Commit 395e12f

Browse files
authored
Remove deprecated skipValidateTypeDefs (#3105)
* feat: remove skipValidateTypeDefs * docs: remove skipValidateTypeDefs from api-reference
1 parent c9f35f1 commit 395e12f

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

.changeset/gentle-colts-relate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@neo4j/graphql": major
3+
---
4+
5+
skipValidateTypeDefs has been removed. Please use startupValidation instead. See https://neo4j.com/docs/graphql-manual/current/guides/v4-migration/#startup-validation

docs/modules/ROOT/pages/api-reference/neo4jgraphql.adoc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,6 @@ Accepts all of the options from https://www.graphql-tools.com/docs/generate-sche
6666
Type: xref::api-reference/neo4jgraphql.adoc#api-reference-neo4jgraphql-input-neo4jgraphqlconfig-StartupValidationOptions[`StartupValidationOptions`] or `boolean`
6767
|Whether or not startup validation checks should be run. A boolean can be used to enable/disable all startup checks. Alternatively, a `StartupValidationOptions` object can be used for fine grain controls. If nothing is passed, all checks will be run.
6868

69-
|`skipValidateTypeDefs` +
70-
+
71-
Type: `boolean`
72-
|*`skipValidateTypeDefs` has been deprecated and will be removed in 4.0.0. Please use `startupValidation` instead.* +
73-
+
74-
Can be used to disable strict type definition validation if you are encountering unexpected errors.
75-
7669
|===
7770

7871
[[api-reference-neo4jgraphql-input-neo4jgraphqlconfig-driverconfig]]

packages/graphql/src/classes/Neo4jGraphQL.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ import { validateDocument } from "../schema/validation";
5555
export interface Neo4jGraphQLConfig {
5656
driverConfig?: DriverConfig;
5757
enableDebug?: boolean;
58-
/**
59-
* @deprecated This argument has been deprecated and will be removed in v4.0.0.
60-
* Please use startupValidation instead. More information can be found at
61-
* https://neo4j.com/docs/graphql-manual/current/guides/v4-migration/#startup-validation
62-
*/
63-
skipValidateTypeDefs?: boolean;
6458
startupValidation?: StartupValidationConfig;
6559
queryOptions?: CypherQueryOptions;
6660
}
@@ -404,9 +398,6 @@ class Neo4jGraphQL {
404398
};
405399
}
406400

407-
// TODO - remove in 4.0.0 when skipValidateTypeDefs is removed
408-
if (this.config?.skipValidateTypeDefs === true) validationConfig.validateTypeDefs = false;
409-
410401
if (typeof this.config?.startupValidation === "object") {
411402
if (this.config?.startupValidation.typeDefs === false) validationConfig.validateTypeDefs = false;
412403
if (this.config?.startupValidation.resolvers === false) validationConfig.validateResolvers = false;

0 commit comments

Comments
 (0)