Class: PrismaWeaver

Constructors

new PrismaWeaver()

new PrismaWeaver(): PrismaWeaver

Returns

PrismaWeaver

Properties

vendor

static vendor: string = "gqloom.prisma"

Defined in

packages/prisma/src/index.ts:30

Methods

config()

static config(config): PrismaWeaverConfig

Parameters

config: PrismaWeaverConfigOptions

Returns

PrismaWeaverConfig

Defined in

packages/prisma/src/index.ts:124


getGraphQLEnumType()

static getGraphQLEnumType(enumType): GraphQLEnumType

Parameters

enumType: ReadonlyDeep<object>

Returns

GraphQLEnumType

Defined in

packages/prisma/src/index.ts:157


getGraphQLField()

static getGraphQLField(field, meta?): undefined | GraphQLFieldConfig<any, any, any>

Parameters

field: ReadonlyDeep<object>

meta?: PrismaModelMeta

Returns

undefined | GraphQLFieldConfig<any, any, any>

Defined in

packages/prisma/src/index.ts:98


getGraphQLTypeByField()

static getGraphQLTypeByField(type, field?): GraphQLOutputType

Parameters

type: string

field?: ReadonlyDeep<object>

Returns

GraphQLOutputType

Defined in

packages/prisma/src/index.ts:131


getGraphQLTypeByModel()

static getGraphQLTypeByModel(model, meta?): GraphQLNonNull<GraphQLOutputType>

Parameters

model: ReadonlyDeep<object>

meta?: PrismaModelMeta

Returns

GraphQLNonNull<GraphQLOutputType>

Defined in

packages/prisma/src/index.ts:71


unravel()

static unravel<TModal>(model, meta): PrismaModelSilk<TModal, string, object>

Type Parameters

TModal

Parameters

model: ReadonlyDeep<object>

meta: PrismaModelMeta

Returns

PrismaModelSilk<TModal, string, object>

Defined in

packages/prisma/src/index.ts:32


unravelEnum()

static unravelEnum<TEnum>(enumType): PrismaEnumSilk<TEnum>

Type Parameters

TEnum = any

Parameters

enumType: ReadonlyDeep<object>

Returns

PrismaEnumSilk<TEnum>

Defined in

packages/prisma/src/index.ts:56