From 44cbef5435081311acb9e68dd750f1ca289b8221 Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Mon, 1 Nov 2021 10:23:25 +1100 Subject: [PATCH] Update minor typos in GraphQL errors (#6853) * Update minor typos in GraphQL errors --- .changeset/tidy-readers-appear.md | 5 +++++ packages/keystone/src/types/schema/graphql-ts-schema.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/tidy-readers-appear.md diff --git a/.changeset/tidy-readers-appear.md b/.changeset/tidy-readers-appear.md new file mode 100644 index 00000000000..b06be7706dc --- /dev/null +++ b/.changeset/tidy-readers-appear.md @@ -0,0 +1,5 @@ +--- +'@keystone-next/keystone': patch +--- + +Updated minor typos in GraphQL errors diff --git a/packages/keystone/src/types/schema/graphql-ts-schema.ts b/packages/keystone/src/types/schema/graphql-ts-schema.ts index 58bd48c9f42..ee93b4c401f 100644 --- a/packages/keystone/src/types/schema/graphql-ts-schema.ts +++ b/packages/keystone/src/types/schema/graphql-ts-schema.ts @@ -98,13 +98,13 @@ const RFC_3339_REGEX = function parseDate(input: string): Date { if (!RFC_3339_REGEX.test(input)) { throw new GraphQLError( - 'DateTime scalars must be in the form of a full ISO 8601 date-time stirng' + 'DateTime scalars must be in the form of a full ISO 8601 date-time string' ); } const parsed = new Date(input); if (isNaN(parsed.valueOf())) { throw new GraphQLError( - 'DateTime scalars must be in the form of a full ISO 8601 date-time stirng' + 'DateTime scalars must be in the form of a full ISO 8601 date-time string' ); } return parsed;