hipthrusts - v1.2.0
Preparing search index...
mongoose
LoadManyTo
Function LoadManyTo
LoadManyTo
<
TRaw
,
TKey
extends
string
,
TSpec
extends
FilterSpec
=
{}
>
(
Model
:
Model
<
TRaw
>
,
key
:
TKey
,
filterSpec
?:
TSpec
,
)
:
{
loadResources
:
(
context
:
SpecReq
<
TSpec
>
,
)
=>
Promise
<
Record
<
TKey
,
LeanDocOf
<
TRaw
>
[]
>
>
;
}
LoadResources fragment:
Model.find(spec).lean()
-> ctx[key]: Lean
[]
Type Parameters
TRaw
TKey
extends
string
TSpec
extends
FilterSpec
=
{}
Parameters
Model
:
Model
<
TRaw
>
key
:
TKey
Optional
filterSpec
:
TSpec
Returns
{
loadResources
:
(
context
:
SpecReq
<
TSpec
>
,
)
=>
Promise
<
Record
<
TKey
,
LeanDocOf
<
TRaw
>
[]
>
>
;
}
LoadManyTo
<
TRaw
,
TKey
extends
string
,
TCtx
extends
object
>
(
Model
:
Model
<
TRaw
>
,
key
:
TKey
,
filterSelector
:
(
context
:
TCtx
)
=>
Record
<
string
,
unknown
>
,
)
:
{
loadResources
:
(
context
:
TCtx
,
)
=>
Promise
<
Record
<
TKey
,
LeanDocOf
<
TRaw
>
[]
>
>
;
}
LoadResources fragment:
Model.find(spec).lean()
-> ctx[key]: Lean
[]
Type Parameters
TRaw
TKey
extends
string
TCtx
extends
object
Parameters
Model
:
Model
<
TRaw
>
key
:
TKey
filterSelector
:
(
context
:
TCtx
)
=>
Record
<
string
,
unknown
>
Returns
{
loadResources
:
(
context
:
TCtx
)
=>
Promise
<
Record
<
TKey
,
LeanDocOf
<
TRaw
>
[]
>
>
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
hipthrusts - v1.2.0
Loading...
LoadResources fragment:[]
Model.find(spec).lean()-> ctx[key]: Lean