Class: PrismaTypeWeaver

Extended by

Constructors

new PrismaTypeWeaver()

new PrismaTypeWeaver(modelMeta): PrismaTypeWeaver

Parameters

modelMeta: PrismaModelMeta

Returns

PrismaTypeWeaver

Defined in

packages/prisma/src/type-weaver.ts:20

Properties

modelMeta

protected modelMeta: Required<PrismaModelMeta>

Defined in

packages/prisma/src/type-weaver.ts:18

Methods

enumType()

enumType(name): GraphQLEnumType

Parameters

name: string

Returns

GraphQLEnumType

Defined in

packages/prisma/src/type-weaver.ts:90


inputType()

inputType(name): GraphQLScalarType<unknown, unknown> | GraphQLObjectType<any, any>

Parameters

name: string

Returns

GraphQLScalarType<unknown, unknown> | GraphQLObjectType<any, any>

Defined in

packages/prisma/src/type-weaver.ts:24


emptyInputScalar()

protected static emptyInputScalar(): GraphQLScalarType<unknown, unknown>

Returns

GraphQLScalarType<unknown, unknown>

Defined in

packages/prisma/src/type-weaver.ts:117


getInputTypeRank()

protected static getInputTypeRank(inputType): number

Parameters

inputType: InputTypeRef

Returns

number

Defined in

packages/prisma/src/type-weaver.ts:146


getMostRankInputType()

protected static getMostRankInputType(inputTypes): InputTypeRef

Parameters

inputTypes: readonly InputTypeRef[]

Returns

InputTypeRef

Defined in

packages/prisma/src/type-weaver.ts:133


indexEnumTypes()

protected static indexEnumTypes(schema): Map<string, ReadonlyDeep<object>>

Parameters

schema: ReadonlyDeep<object>

Returns

Map<string, ReadonlyDeep<object>>

Defined in

packages/prisma/src/type-weaver.ts:185


indexInputTypes()

protected static indexInputTypes(schema): Map<string, ReadonlyDeep<object>>

Parameters

schema: ReadonlyDeep<object>

Returns

Map<string, ReadonlyDeep<object>>

Defined in

packages/prisma/src/type-weaver.ts:175


indexModelMeta()

protected static indexModelMeta(modelMeta): Required<PrismaModelMeta>

Parameters

modelMeta: PrismaModelMeta

Returns

Required<PrismaModelMeta>

Defined in

packages/prisma/src/type-weaver.ts:167