Class: PrismaActionArgsWeaver

Extends

Constructors

new PrismaActionArgsWeaver()

new PrismaActionArgsWeaver(silk): PrismaActionArgsWeaver

Parameters

silk: PrismaModelSilk<any, string, object>

Returns

PrismaActionArgsWeaver

Overrides

PrismaTypeWeaver.constructor

Defined in

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

Properties

modelMeta

protected modelMeta: Required<PrismaModelMeta>

Inherited from

PrismaTypeWeaver.modelMeta

Defined in

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


silk

protected readonly silk: PrismaModelSilk<any, string, object>

Defined in

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

Methods

countArgs()

countArgs(modelName?): GraphQLObjectType<any, any>

Parameters

modelName?: string | ReadonlyDeep<object>

Returns

GraphQLObjectType<any, any>

Defined in

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


createArgs()

createArgs(modelName?): GraphQLObjectType<any, any>

Parameters

modelName?: string | ReadonlyDeep<object>

Returns

GraphQLObjectType<any, any>

Defined in

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


createManyArgs()

createManyArgs(modelName?): GraphQLObjectType<any, any>

Parameters

modelName?: string | ReadonlyDeep<object>

Returns

GraphQLObjectType<any, any>

Defined in

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


deleteArgs()

deleteArgs(modelName?): GraphQLObjectType<any, any>

Parameters

modelName?: string | ReadonlyDeep<object>

Returns

GraphQLObjectType<any, any>

Defined in

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


deleteManyArgs()

deleteManyArgs(modelName?): GraphQLObjectType<any, any>

Parameters

modelName?: string | ReadonlyDeep<object>

Returns

GraphQLObjectType<any, any>

Defined in

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


enumType()

enumType(name): GraphQLEnumType

Parameters

name: string

Returns

GraphQLEnumType

Inherited from

PrismaTypeWeaver.enumType

Defined in

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


findFirstArgs()

findFirstArgs(modelName?): GraphQLObjectType<any, any>

Parameters

modelName?: string | ReadonlyDeep<object>

Returns

GraphQLObjectType<any, any>

Defined in

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


findManyArgs()

findManyArgs(modelName?): GraphQLObjectType<any, any>

Parameters

modelName?: string | ReadonlyDeep<object>

Returns

GraphQLObjectType<any, any>

Defined in

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


findUniqueArgs()

findUniqueArgs(modelName?): GraphQLObjectType<any, any>

Parameters

modelName?: string | ReadonlyDeep<object>

Returns

GraphQLObjectType<any, any>

Defined in

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


getModel()

protected getModel(modelOrName?): ReadonlyDeep<object>

Parameters

modelOrName?: string | ReadonlyDeep<object>

Returns

ReadonlyDeep<object>

dbName

dbName: null | string

documentation?

optional documentation: string

fields

fields: ReadonlyDeep<object>[]

isGenerated?

optional isGenerated: boolean

name

name: string

primaryKey

primaryKey: null | ReadonlyDeep<object>

uniqueFields

uniqueFields: string[][]

uniqueIndexes

uniqueIndexes: ReadonlyDeep<object>[]

Defined in

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


inputType()

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

Parameters

name: string

Returns

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

Inherited from

PrismaTypeWeaver.inputType

Defined in

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


updateArgs()

updateArgs(modelName?): GraphQLObjectType<any, any>

Parameters

modelName?: string | ReadonlyDeep<object>

Returns

GraphQLObjectType<any, any>

Defined in

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


updateManyArgs()

updateManyArgs(modelName?): GraphQLObjectType<any, any>

Parameters

modelName?: string | ReadonlyDeep<object>

Returns

GraphQLObjectType<any, any>

Defined in

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


upsertArgs()

upsertArgs(modelName?): GraphQLObjectType<any, any>

Parameters

modelName?: string | ReadonlyDeep<object>

Returns

GraphQLObjectType<any, any>

Defined in

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


batchPayload()

static batchPayload(): GraphQLObjectType<any, any>

Returns

GraphQLObjectType<any, any>

Defined in

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


emptyInputScalar()

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

Returns

GraphQLScalarType<unknown, unknown>

Inherited from

PrismaTypeWeaver.emptyInputScalar

Defined in

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


getInputTypeRank()

protected static getInputTypeRank(inputType): number

Parameters

inputType: InputTypeRef

Returns

number

Inherited from

PrismaTypeWeaver.getInputTypeRank

Defined in

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


getMostRankInputType()

protected static getMostRankInputType(inputTypes): InputTypeRef

Parameters

inputTypes: readonly InputTypeRef[]

Returns

InputTypeRef

Inherited from

PrismaTypeWeaver.getMostRankInputType

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>>

Inherited from

PrismaTypeWeaver.indexEnumTypes

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>>

Inherited from

PrismaTypeWeaver.indexInputTypes

Defined in

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


indexModelMeta()

protected static indexModelMeta(modelMeta): Required<PrismaModelMeta>

Parameters

modelMeta: PrismaModelMeta

Returns

Required<PrismaModelMeta>

Inherited from

PrismaTypeWeaver.indexModelMeta

Defined in

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