Class: MikroOperationBobbin<TSchema>

Type Parameters

TSchema extends EntitySchema<any, any> & GraphQLSilk

Constructors

new MikroOperationBobbin()

new MikroOperationBobbin<TSchema>(entity, optionsOrGetEntityManager): MikroOperationBobbin<TSchema>

Parameters

entity: TSchema

optionsOrGetEntityManager: MikroOperationBobbinOptions | () => MayPromise<EntityManager<IDatabaseDriver<Connection>>>

Returns

MikroOperationBobbin<TSchema>

Defined in

packages/mikro-orm/src/operations.ts:49

Properties

entity

readonly entity: TSchema

Defined in

packages/mikro-orm/src/operations.ts:50


flushMiddleware

flushMiddleware: Middleware

Defined in

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


options

readonly options: MikroOperationBobbinOptions

Defined in

packages/mikro-orm/src/operations.ts:48


COMPARISON_KEYS

static COMPARISON_KEYS: string = "comparisonKeys"

Defined in

packages/mikro-orm/src/operations.ts:455

Methods

CreateInput()

CreateInput(): GraphQLSilk<RequiredEntityData<InferEntity<TSchema>>, object>

Returns

GraphQLSilk<RequiredEntityData<InferEntity<TSchema>>, object>

Defined in

packages/mikro-orm/src/operations.ts:77


CreateMutation()

CreateMutation<TInputI>(__namedParameters): FieldOrOperation<undefined, TSchema, GraphQLSilk<RequiredEntityData<InferEntity<TSchema>>, TInputI>, "mutation">

Create a create mutation for the given entity.

Type Parameters

TInputI = object

Parameters

__namedParameters: object & GraphQLFieldOptions = {}

Returns

FieldOrOperation<undefined, TSchema, GraphQLSilk<RequiredEntityData<InferEntity<TSchema>>, TInputI>, "mutation">

Defined in

packages/mikro-orm/src/operations.ts:104


DeleteOneMutation()

DeleteOneMutation<TInputI>(__namedParameters): FieldOrOperation<undefined, NullableSilk<TSchema>, GraphQLSilk<FindOneFilter<InferEntity<TSchema>>, TInputI>, "mutation">

Create a deleteOne mutation for the given entity.

Type Parameters

TInputI = FindOneFilter<InferEntity<TSchema>>

Parameters

__namedParameters: object & GraphQLFieldOptions = {}

Returns

FieldOrOperation<undefined, NullableSilk<TSchema>, GraphQLSilk<FindOneFilter<InferEntity<TSchema>>, TInputI>, "mutation">

Defined in

packages/mikro-orm/src/operations.ts:306


FindManyOptions()

FindManyOptions(): GraphQLSilk<any, any>

Returns

GraphQLSilk<any, any>

Defined in

packages/mikro-orm/src/operations.ts:358


FindManyOptionsOrderByType()

FindManyOptionsOrderByType(): GraphQLObjectType<any, any>

Returns

GraphQLObjectType<any, any>

Defined in

packages/mikro-orm/src/operations.ts:409


FindManyOptionsWhereType()

FindManyOptionsWhereType(): GraphQLObjectType<any, any>

Returns

GraphQLObjectType<any, any>

Defined in

packages/mikro-orm/src/operations.ts:430


FindManyQuery()

FindManyQuery<TInputI>(__namedParameters): FieldOrOperation<undefined, ListSilk<TSchema>, GraphQLSilk<FindAllOptions<InferEntity<TSchema>, never, "*", never>, TInputI>, "query">

Create a findMany query for the given entity.

Type Parameters

TInputI = FindManyOptions<InferEntity<TSchema>>

Parameters

__namedParameters: object & GraphQLFieldOptions = {}

Returns

FieldOrOperation<undefined, ListSilk<TSchema>, GraphQLSilk<FindAllOptions<InferEntity<TSchema>, never, "*", never>, TInputI>, "query">

Defined in

packages/mikro-orm/src/operations.ts:459


FindOneFilter()

FindOneFilter(): GraphQLSilk<FindOneFilter<InferEntity<TSchema>>, FindOneFilter<InferEntity<TSchema>>>

Returns

GraphQLSilk<FindOneFilter<InferEntity<TSchema>>, FindOneFilter<InferEntity<TSchema>>>

Defined in

packages/mikro-orm/src/operations.ts:234


FindOneQuery()

FindOneQuery<TInputI>(__namedParameters): FieldOrOperation<undefined, TSchema, GraphQLSilk<FindOneFilter<InferEntity<TSchema>>, TInputI>, "query">

Create a findOne query for the given entity.

Type Parameters

TInputI = FindOneFilter<InferEntity<TSchema>>

Parameters

__namedParameters: object & GraphQLFieldOptions = {}

Returns

FieldOrOperation<undefined, TSchema, GraphQLSilk<FindOneFilter<InferEntity<TSchema>>, TInputI>, "query">

Defined in

packages/mikro-orm/src/operations.ts:255


getEm()

getEm(): MayPromise<EntityManager<IDatabaseDriver<Connection>>>

Returns

MayPromise<EntityManager<IDatabaseDriver<Connection>>>

Defined in

packages/mikro-orm/src/operations.ts:73


middlewaresWithFlush()

protected middlewaresWithFlush<TField>(__namedParameters): Middleware<TField>[]

Type Parameters

TField extends GenericFieldOrOperation

Parameters

__namedParameters

__namedParameters.middlewares?: Middleware<TField>[]

Returns

Middleware<TField>[]

Defined in

packages/mikro-orm/src/operations.ts:502


UpdateInput()

UpdateInput(): GraphQLSilk<UpdateInput<InferEntity<TSchema>>, object>

Returns

GraphQLSilk<UpdateInput<InferEntity<TSchema>>, object>

Defined in

packages/mikro-orm/src/operations.ts:154


UpdateMutation()

UpdateMutation<TInputI>(__namedParameters): FieldOrOperation<undefined, TSchema, GraphQLSilk<UpdateInput<InferEntity<TSchema>>, TInputI>, "mutation">

Create a update mutation for the given entity.

Type Parameters

TInputI = object

Parameters

__namedParameters: object & GraphQLFieldOptions = {}

Returns

FieldOrOperation<undefined, TSchema, GraphQLSilk<UpdateInput<InferEntity<TSchema>>, TInputI>, "mutation">

Defined in

packages/mikro-orm/src/operations.ts:181


ComparisonOperatorsType()

static ComparisonOperatorsType<TScalarType>(type): GraphQLObjectType<any, any>

Type Parameters

TScalarType extends GraphQLScalarType<unknown, unknown>

Parameters

type: TScalarType

Returns

GraphQLObjectType<any, any>

Defined in

packages/mikro-orm/src/operations.ts:533


QueryOrderType()

static QueryOrderType(): GraphQLEnumType

Returns

GraphQLEnumType

Defined in

packages/mikro-orm/src/operations.ts:512