Powership / Modules / Mongo Transporter for Powership.
- createMongoIndexBasedFilters
- getMongoDataloader
- isObjectId
- mongoFindMany
- mongoLoadById
- mongoLoadByIds
- parseMongoAttributeFilters
- parseMongoDLParams
- parseMongoUpdateExpression
Ƭ CacheContext: Record
<string
, any
>
packages/mongo/src/mongoDataLoader/IMongoDataLoader.ts:4
Ƭ MongoDataLoaderOptions: DataLoader.Options
<MongoDataLoaderKey
, any
, string
>
packages/mongo/src/mongoDataLoader/IMongoDataLoader.ts:16
Ƭ ParsedMongoDLParams: ReturnType
<typeof parseMongoDLParams
>
packages/mongo/src/mongoDataLoader/parseMongoDLParams.ts:7
▸ createMongoIndexBasedFilters(options
): Query
<any
>[]
Name | Type |
---|---|
options |
Object |
options.filter |
IndexFilterRecord <string , string > |
options.indexConfig |
AnyCollectionIndexConfig |
Query
<any
>[]
packages/transporter/out/parseAggioAttributeFilters.d.ts:4
▸ getMongoDataloader(cacheContext
, dataloaderHash
): MongoDataLoader
Name | Type |
---|---|
cacheContext |
CacheContext |
dataloaderHash |
string |
packages/mongo/src/mongoDataLoader/getMongoDataloader.ts:7
▸ isObjectId(input
): input is ObjectId
Name | Type |
---|---|
input |
any |
input is ObjectId
packages/mongo/src/mongoDataLoader/parseMongoDLParams.ts:45
▸ mongoFindMany(options
, context?
): Promise
<DocumentBase
[]>
Name | Type |
---|---|
options |
MongoFindManyParams |
context? |
null | CacheContext |
Promise
<DocumentBase
[]>
packages/mongo/src/mongoDataLoader/mongoFindMany.ts:47
▸ mongoLoadById(options
, cacheContext
): Promise
<DocumentBase
[]>
Name | Type |
---|---|
options |
Omit <MongoFindManyParams , "sort" | "query" | "onlyOne" > & { id : any } |
cacheContext |
CacheContext |
Promise
<DocumentBase
[]>
packages/mongo/src/mongoDataLoader/mongoFindMany.ts:8
▸ mongoLoadByIds(options
, cacheContext
): Promise
<DocumentBase
[][]>
Name | Type |
---|---|
options |
Omit <MongoFindManyParams , "sort" | "query" | "onlyOne" > & { ids : any [] } |
cacheContext |
CacheContext |
Promise
<DocumentBase
[][]>
packages/mongo/src/mongoDataLoader/mongoFindMany.ts:26
▸ parseMongoAttributeFilters(attFilter
): Query
<any
>[]
Name | Type |
---|---|
attFilter |
FilterRecord <DocumentBase > |
Query
<any
>[]
packages/transporter/out/parseAggioAttributeFilters.d.ts:8
▸ parseMongoDLParams(options
): Object
Name | Type |
---|---|
options |
MongoFindManyParams |
Object
Name | Type |
---|---|
_isParsed |
boolean |
dataLoaderKey |
MongoDataLoaderKey |
dataloaderHash |
string |
queryHash |
string |
packages/mongo/src/mongoDataLoader/parseMongoDLParams.ts:9
▸ parseMongoUpdateExpression(operations
): UpdateDefinition
<any
> | UpdateDefinition
<any
>[]
Name | Type |
---|---|
operations |
({ entries : [string , undefined | Record <string , undefined | number >][] ; operator : "$inc" ; valueConstructorName : string } | { entries : [string , undefined | {}][] ; operator : "$addToSet" ; valueConstructorName : string } | { entries : [string , undefined | {}][] ; operator : "$append" ; valueConstructorName : string } | { entries : [string , undefined | {}][] ; operator : "$prepend" ; valueConstructorName : string } | { entries : [string , undefined | {}][] ; operator : "$pull" ; valueConstructorName : string } | { entries : [string , undefined | MaybeArray <string >][] ; operator : "$remove" ; valueConstructorName : string } | { entries : [string , undefined | Readonly <{} & {} & {}>][] ; operator : "$set" ; valueConstructorName : string } | { entries : [string , undefined | Readonly <{} & {} & {}>][] ; operator : "$setIfNull" ; valueConstructorName : string } | { entries : [string , undefined | Readonly <{} & {} & {}>][] ; operator : "$setOnInsert" ; valueConstructorName : string })[] |
UpdateDefinition
<any
> | UpdateDefinition
<any
>[]
packages/transporter/out/parseAggioUpdateExpression.d.ts:3