Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrcfunctionscreateNamedStub

Function: createNamedStub()

Call Signature

createNamedStub(name, type): GraphQLObjectType

Defined in: packages/utils/src/stub.ts:20

Parameters

name

string

type

"object"

Returns

GraphQLObjectType

Call Signature

createNamedStub(name, type): GraphQLInterfaceType

Defined in: packages/utils/src/stub.ts:21

Parameters

name

string

type

"interface"

Returns

GraphQLInterfaceType

Call Signature

createNamedStub(name, type): GraphQLInputObjectType

Defined in: packages/utils/src/stub.ts:22

Parameters

name

string

type

"input"

Returns

GraphQLInputObjectType