Class: MikroWeaver

Constructors

new MikroWeaver()

new MikroWeaver(): MikroWeaver

Returns

MikroWeaver

Properties

config()

static config: (config) => MikroWeaverConfig

Create a Valibot weaver config object

Parameters

config: MikroWeaverConfigOptions

Valibot weaver config options

Returns

MikroWeaverConfig

a Valibot weaver config object

Defined in

packages/mikro-orm/src/index.ts:219


ObjectConfigMap

static ObjectConfigMap: WeakMap<EntitySchema<any, never>, Partial<GraphQLObjectTypeConfig<any, any>>>

Defined in

packages/mikro-orm/src/index.ts:66


useConfig()

static useConfig: (config) => <TSchema>(schema) => EntitySchemaSilk<TSchema>

Use a Valibot weaver config

Parameters

config: MikroWeaverConfigOptions

Valibot weaver config options

Returns

Function

a new Valibot to silk function

get GraphQL Silk from Mikro Entity Schema

Type Parameters

TSchema extends EntitySchema<any, never>

Parameters

schema: TSchema

Mikro Entity Schema

Returns

EntitySchemaSilk<TSchema>

GraphQL Silk Like Mikro Entity Schema

Defined in

packages/mikro-orm/src/index.ts:233


vendor

static vendor: string = "gqloom.mikro-orm"

Defined in

packages/mikro-orm/src/index.ts:39

Methods

asObjectType()

static asObjectType(schema, config): EntitySchema<any, never>

Parameters

schema: EntitySchema<any, never>

config: Partial<GraphQLObjectTypeConfig<any, any>>

Returns

EntitySchema<any, never>

Defined in

packages/mikro-orm/src/index.ts:71


extractSimpleType()

static extractSimpleType(type): "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

type: string

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/index.ts:210


getFieldConfig()

static getFieldConfig(property, __namedParameters): undefined | GraphQLFieldConfig<any, any, any>

Parameters

property: EntityProperty<any, any>

__namedParameters = {}

__namedParameters.nullable?: boolean

__namedParameters.originField?: GraphQLField<any, any, any>

Returns

undefined | GraphQLFieldConfig<any, any, any>

Defined in

packages/mikro-orm/src/index.ts:137


getFieldType()

static getFieldType(property): undefined | GraphQLOutputType

Parameters

property: EntityProperty<any, any>

Returns

undefined | GraphQLOutputType

Defined in

packages/mikro-orm/src/index.ts:179


getGraphQLType()

static getGraphQLType<TSchema>(entity, __namedParameters): GraphQLNonNull<GraphQLOutputType>

Type Parameters

TSchema extends EntitySchema<any, never>

Parameters

entity: TSchema

__namedParameters = {}

__namedParameters.name?: string

__namedParameters.partial?: boolean | keyof InferEntity<TSchema>[]

__namedParameters.pick?: keyof InferEntity<TSchema>[]

__namedParameters.required?: boolean | keyof InferEntity<TSchema>[]

Returns

GraphQLNonNull<GraphQLOutputType>

Defined in

packages/mikro-orm/src/index.ts:83


getGraphQLTypeBySelf()

static getGraphQLTypeBySelf(this): GraphQLNonNull<GraphQLOutputType>

Parameters

this: EntitySchema<any, never>

Returns

GraphQLNonNull<GraphQLOutputType>

Defined in

packages/mikro-orm/src/index.ts:79


unravel()

static unravel<TSchema>(schema): EntitySchemaSilk<TSchema>

get GraphQL Silk from Mikro Entity Schema

Type Parameters

TSchema extends EntitySchema<any, never>

Parameters

schema: TSchema

Mikro Entity Schema

Returns

EntitySchemaSilk<TSchema>

GraphQL Silk Like Mikro Entity Schema

Defined in

packages/mikro-orm/src/index.ts:45