Interface: PrismaModelSilk<TModel, TName, TRelation>

The Standard Schema interface.

Extends

Type Parameters

TModel

TName extends string = string

TRelation extends Record<string, any> = object

Properties

[GET_GRAPHQL_TYPE]()?

optional [GET_GRAPHQL_TYPE]: () => GraphQLOutputType

GraphQL type for schema

Returns

GraphQLOutputType

Inherited from

GraphQLSilk.[GET_GRAPHQL_TYPE]

Defined in

packages/core/src/resolver/types.ts:29


~standard

readonly ~standard: StandardSchemaProps<any, TModel>

The Standard Schema properties.

Inherited from

GraphQLSilk.~standard

Defined in

node_modules/.pnpm/@standard-schema+spec@1.0.0-beta.3/node_modules/@standard-schema/spec/dist/index.d.ts:9


meta

meta: PrismaModelMeta

Defined in

packages/prisma/src/types.ts:16


model

model: ReadonlyDeep<object>

Type declaration

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/types.ts:15


name

name: TName

Defined in

packages/prisma/src/types.ts:17


relations?

optional relations: TRelation

Defined in

packages/prisma/src/types.ts:19

Methods

list()

list(): GraphQLSilk<TModel[], any>

Returns

GraphQLSilk<TModel[], any>

Defined in

packages/prisma/src/types.ts:13


nullable()

nullable(): GraphQLSilk<null | TModel, any>

Returns

GraphQLSilk<null | TModel, any>

Defined in

packages/prisma/src/types.ts:12