diff --git a/typescript/graphql-nestjs/package.json b/typescript/graphql-nestjs/package.json index 240191fa0de3..70ef9c80a087 100644 --- a/typescript/graphql-nestjs/package.json +++ b/typescript/graphql-nestjs/package.json @@ -45,7 +45,7 @@ "@nestjs/platform-express": "9.2.1", "@prisma/client": "4.8.0", "apollo-server-express": "3.11.1", - "class-validator": "0.13.2", + "class-validator": "0.14.0", "graphql": "16.5.0", "graphql-tools": "8.3.14", "reflect-metadata": "0.1.13", diff --git a/typescript/graphql-typegraphql-crud/package.json b/typescript/graphql-typegraphql-crud/package.json index b2f18a16665d..48ff2c0954b1 100644 --- a/typescript/graphql-typegraphql-crud/package.json +++ b/typescript/graphql-typegraphql-crud/package.json @@ -8,7 +8,7 @@ "@prisma/client": "4.8.0", "@types/graphql-fields": "1.3.4", "apollo-server": "3.11.1", - "class-validator": "0.13.2", + "class-validator": "0.14.0", "graphql": "15.8.0", "graphql-fields": "2.0.3", "graphql-type-json": "0.3.2", diff --git a/typescript/graphql-typegraphql/package.json b/typescript/graphql-typegraphql/package.json index ce658c02fac4..0ac8c2533ba7 100644 --- a/typescript/graphql-typegraphql/package.json +++ b/typescript/graphql-typegraphql/package.json @@ -6,7 +6,7 @@ "dependencies": { "@prisma/client": "4.8.0", "apollo-server": "3.11.1", - "class-validator": "0.13.2", + "class-validator": "0.14.0", "graphql": "15.8.0", "graphql-scalars": "1.20.1", "reflect-metadata": "0.1.13", diff --git a/typescript/graphql-typegraphql/src/index.ts b/typescript/graphql-typegraphql/src/index.ts index 888537152ce4..93139a8a1dba 100644 --- a/typescript/graphql-typegraphql/src/index.ts +++ b/typescript/graphql-typegraphql/src/index.ts @@ -15,6 +15,7 @@ const app = async () => { const schema = await tq.buildSchema({ resolvers: [PostResolver, UserResolver, PostCreateInput], scalarsMap: [{ type: GraphQLScalarType, scalar: DateTimeResolver }], + validate: { forbidUnknownValues: false } }) new ApolloServer({ schema, context: context }).listen({ port: 4000 }, () =>