Class: CoreModelQuery
Constructors
new CoreModelQuery(type, model, attribute)
new CoreModelQuery(
type
,model
,attribute
):CoreModelQuery
Parameters
• type: string
• model: CoreModel
• attribute: string
Returns
Source
packages/core/src/models/coremodel.ts:53
Methods
completeQuery()
protected
completeQuery(query
?):string
Complete the query with condition
Parameters
• query?: string
Returns
string
Source
packages/core/src/models/coremodel.ts:87
forEach()
forEach(
callback
,query
?,context
?,parallelism
?):Promise
<void
>
Parameters
• callback: (model
) => Promise
<void
>
• query?: string
• context?: OperationContext
<any
, any
>
• parallelism?: number
= 3
Returns
Promise
<void
>
Source
packages/core/src/models/coremodel.ts:96
getAll()
getAll(
context
?):Promise
<CoreModelQuery
[]>
Get all the objects
Parameters
• context?: OperationContext
<any
, any
>
Returns
Promise
<CoreModelQuery
[]>
Source
packages/core/src/models/coremodel.ts:123
getTargetModel()
getTargetModel():
CoreModelDefinition
<CoreModel
>
Retrieve target model definition
Returns
CoreModelDefinition
<CoreModel
>
Source
packages/core/src/models/coremodel.ts:63
iterate()
iterate(
query
?,context
?):AsyncGenerator
<CoreModel
,any
,unknown
>
Iterate through all
Parameters
• query?: string
• context?: OperationContext
<any
, any
>
Returns
AsyncGenerator
<CoreModel
, any
, unknown
>
Source
packages/core/src/models/coremodel.ts:115
query()
query(
query
?,context
?):Promise
<Object
>
Query the object
Parameters
• query?: string
• context?: OperationContext
<any
, any
>
Returns
Promise
<Object
>
continuationToken?
continuationToken?:
string
results
results:
CoreModel
[]