Skip to content

Commit

Permalink
Fix wording of comment in buildClientSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Jan 8, 2023
1 parent 505d096 commit 273f976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utilities/buildClientSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export function buildClientSchema(
introspection: IntrospectionQuery,
options?: GraphQLSchemaValidationOptions,
): GraphQLSchema {
// Even even though `introspection` argument is typed in most cases it's received
// as untyped value from server, so we will do an additional check here.
// Even though the `introspection` argument is typed, in most cases it's received
// as an untyped value from the server, so we will do an additional check here.
devAssert(
isObjectLike(introspection) && isObjectLike(introspection.__schema),
`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${inspect(
Expand Down

0 comments on commit 273f976

Please sign in to comment.