Function: query()
query(model)
query<
C
,E
,M
>(model
):ContextEnhancer
<C
,E
,C
&ConsumeModel
<M
>>
Type parameters
• C extends object
• E extends object
• M extends Model
Parameters
• model: M
Returns
ContextEnhancer
<C
, E
, C
& ConsumeModel
<M
>>
Source
packages/core/src/actions/context/enhancers/query.ts:67
query(model, id)
query<
C
,E
,M
>(model
,id
):ContextEnhancer
<C
,E
,C
&ConsumeModel
<M
> &ConsumeId
>
Type parameters
• C extends object
• E extends object
• M extends Model
Parameters
• model: M
• id: ModelIdType
Returns
ContextEnhancer
<C
, E
, C
& ConsumeModel
<M
> & ConsumeId
>
Source
packages/core/src/actions/context/enhancers/query.ts:67
query(instance)
query<
C
,E
,D
,I
>(instance
):ContextEnhancer
<C
,E
,C
&ConsumeModel
<Model
<D
,I
>> &ConsumeInstance
<I
> &ConsumeId
>
Type parameters
• C extends object
• E extends object
• D extends object
• I extends ModelInstance
<D
>
Parameters
• instance: ModelClassInstance
<D
> & I
Returns
ContextEnhancer
<C
, E
, C
& ConsumeModel
<Model
<D
, I
>> & ConsumeInstance
<I
> & ConsumeId
>
Source
packages/core/src/actions/context/enhancers/query.ts:67
query(instance, relation)
query<
C
,E
,D
,RD
,I
,K
>(instance
,relation
):ContextEnhancer
<C
,E
,C
&ConsumeModel
<Model
<D
,I
>> &ConsumeRelation
<RD
[K
]> &ConsumeId
>
Type parameters
• C extends object
• E extends object
• D extends object
• RD extends ModelSchemaRelations
<D
>
• I extends ModelInstance
<D
>
• K extends string
Parameters
• instance: ModelClassInstance
<D
> & I
• relation: ModelRelationKey
<D
> & K
Returns
ContextEnhancer
<C
, E
, C
& ConsumeModel
<Model
<D
, I
>> & ConsumeRelation
<RD
[K
]> & ConsumeId
>