Class: EntitySchemaWeaver

Constructors

new EntitySchemaWeaver()

new EntitySchemaWeaver(): EntitySchemaWeaver

Returns

EntitySchemaWeaver

Methods

createWeaver()

static createWeaver<TSchemaIO>(toSilk, creatorOptions): CallableEntitySchemaWeaver<TSchemaIO>

Type Parameters

TSchemaIO extends AbstractSchemaIO

Parameters

toSilk

creatorOptions: EntitySchemaWeaverOptions = {}

Returns

CallableEntitySchemaWeaver<TSchemaIO>

Defined in

packages/mikro-orm/src/entity-schema.ts:201


getGraphQLScalarType()

static getGraphQLScalarType(gqlType): "string" | "bigint" | "boolean" | "integer" | "tinyint" | "smallint" | "mediumint" | "double" | "decimal" | "float" | "datetime" | "time" | "date" | "interval" | "uuid" | "text" | "enum" | "blob" | "json" | AnyString | "uint8array" | "array" | "enumArray" | "unknown"

Parameters

gqlType: GraphQLScalarType<any, any>

Returns

"string" | "bigint" | "boolean" | "integer" | "tinyint" | "smallint" | "mediumint" | "double" | "decimal" | "float" | "datetime" | "time" | "date" | "interval" | "uuid" | "text" | "enum" | "blob" | "json" | AnyString | "uint8array" | "array" | "enumArray" | "unknown"

Defined in

packages/mikro-orm/src/entity-schema.ts:182


getPropertyType()

static getPropertyType(wrappedType, field, options?): object & PropertyOptions<any>

Parameters

wrappedType: GraphQLOutputType

field: GraphQLField<any, any, any>

options?: EntitySchemaWeaverOptions

Returns

object & PropertyOptions<any>

Defined in

packages/mikro-orm/src/entity-schema.ts:126


toProperties()

static toProperties(gqlType, options?): Record<string, EntitySchemaProperty<any, any>>

Parameters

gqlType: GraphQLObjectType<any, any>

options?: EntitySchemaWeaverOptions

Returns

Record<string, EntitySchemaProperty<any, any>>

Defined in

packages/mikro-orm/src/entity-schema.ts:101


weave()

static weave(silk, relations?, options?): any

Parameters

silk: GraphQLSilk<any, any>

relations?: Record<string, RelationProperty<any, object>>

options?: Partial<EntitySchemaMetadata<any>> & EntitySchemaWeaverOptions

Returns

any

Defined in

packages/mikro-orm/src/entity-schema.ts:50