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

Function: renameType()

Call Signature

renameType(type, newTypeName): GraphQLObjectType

Defined in: packages/utils/src/renameType.ts:17

Parameters

type

GraphQLObjectType

newTypeName

string

Returns

GraphQLObjectType

Call Signature

renameType(type, newTypeName): GraphQLInterfaceType

Defined in: packages/utils/src/renameType.ts:18

Parameters

type

GraphQLInterfaceType

newTypeName

string

Returns

GraphQLInterfaceType

Call Signature

renameType(type, newTypeName): GraphQLUnionType

Defined in: packages/utils/src/renameType.ts:19

Parameters

type

GraphQLUnionType

newTypeName

string

Returns

GraphQLUnionType

Call Signature

renameType(type, newTypeName): GraphQLEnumType

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

Parameters

type

GraphQLEnumType

newTypeName

string

Returns

GraphQLEnumType

Call Signature

renameType(type, newTypeName): GraphQLScalarType

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

Parameters

type

GraphQLScalarType

newTypeName

string

Returns

GraphQLScalarType

Call Signature

renameType(type, newTypeName): GraphQLInputObjectType

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

Parameters

type

GraphQLInputObjectType

newTypeName

string

Returns

GraphQLInputObjectType

Call Signature

renameType(type, newTypeName): GraphQLNamedType

Defined in: packages/utils/src/renameType.ts:26

Parameters

type

GraphQLNamedType

newTypeName

string

Returns

GraphQLNamedType