MCPcopy Create free account
hub / github.com/ardatan/graphql-tools / assertGraphQLInputObjectType

Function assertGraphQLInputObjectType

packages/testing/assertion.ts:49–56  ·  view source on GitHub ↗
(
  input: unknown,
)

Source from the content-addressed store, hash-verified

47 throw new Error('Expected GraphQLUnionType.');
48}
49export function assertGraphQLInputObjectType(
50 input: unknown,
51): asserts input is GraphQLInputObjectType {
52 if (input instanceof GraphQLInputObjectType) {
53 return;
54 }
55 throw new Error('Expected GraphQLInputObjectType.');
56}
57
58export function assertEnumTypeDefinitionNode(
59 input: ASTNode,

Calls

no outgoing calls

Tested by

no test coverage detected