@shiftcoders/dynamo-easy
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Base
Request
Batch
Get
Single
Table
Request
Batch
Write
Single
Table
Request
Delete
Request
Get
Request
Put
Request
Query
Request
constructor
dynamoDBWrapper
logger
metadata
model
Clazz
params
secondary
Index
table
Name
INFINITE_
LIMIT
ascending
consistent
Read
descending
do
Request
exclusive
Start
Key
exec
exec
Count
exec
Fetch
All
exec
Full
Response
exec
NoMap
exec
Single
index
limit
map
From
Db
projection
Expression
return
Consumed
Capacity
where
where
Attribute
where
Partition
Key
where
Sort
Key
Read
Many
Request
Scan
Request
Standard
Request
Transact
Get
Single
Table
Request
Update
Request
Write
Request
Batch
Get
Single
Table
Response
Delete
Response
Get
Response
Put
Response
Query
Response
Scan
Response
Update
Response
Transact
Get
Response
Write
Response
Type parameters
T
T2
Hierarchy
ReadManyRequest
<
T
,
T2
,
QueryInput
,
QueryOutput
,
QueryResponse
<
T2
>
,
QueryRequest
<
T
,
T2
>
,
QueryRequest
<
T
,
Partial
<
T
>
>
>
QueryRequest
Index
Constructors
constructor
Properties
dynamoDBWrapper
logger
metadata
model
Clazz
params
secondary
Index
table
Name
INFINITE_
LIMIT
Methods
ascending
consistent
Read
descending
do
Request
exclusive
Start
Key
exec
exec
Count
exec
Fetch
All
exec
Full
Response
exec
NoMap
exec
Single
index
limit
map
From
Db
projection
Expression
return
Consumed
Capacity
where
where
Attribute
where
Partition
Key
where
Sort
Key
Constructors
constructor
new
Query
Request
(
dynamoDBWrapper
:
DynamoDbWrapper
, modelClazz
:
ModelConstructor
<
T
>
)
:
QueryRequest
Parameters
dynamoDBWrapper:
DynamoDbWrapper
modelClazz:
ModelConstructor
<
T
>
Returns
QueryRequest
Properties
dynamoDBWrapper
dynamoDBWrapper
:
DynamoDbWrapper
Protected
logger
logger
:
Logger
metadata
metadata
:
Metadata
<
T
>
model
Clazz
model
Clazz
:
ModelConstructor
<
T
>
params
params
:
QueryInput
Protected
Optional
secondary
Index
secondary
Index
:
SecondaryIndex
<
T
>
table
Name
table
Name
:
string
Static
INFINITE_
LIMIT
INFINITE_
LIMIT
:
number
= -1
Methods
ascending
ascending
(
)
:
this
Returns
this
consistent
Read
consistent
Read
(
consistentRead
?:
boolean
)
:
this
Parameters
Default value
consistentRead:
boolean
= true
Returns
this
descending
descending
(
)
:
this
Returns
this
Protected
do
Request
do
Request
(
params
:
QueryInput
)
:
Promise
<
QueryOutput
>
Parameters
params:
QueryInput
Returns
Promise
<
QueryOutput
>
exclusive
Start
Key
exclusive
Start
Key
(
key
:
DynamoDB.Key
|
null
)
:
this
Parameters
key:
DynamoDB.Key
|
null
Returns
this
exec
exec
(
)
:
Promise
<
T2
[]
>
Returns
Promise
<
T2
[]
>
exec
Count
exec
Count
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
exec
Fetch
All
exec
Fetch
All
(
)
:
Promise
<
T2
[]
>
Returns
Promise
<
T2
[]
>
exec
Full
Response
exec
Full
Response
(
)
:
Promise
<
QueryResponse
<
T2
>
>
Returns
Promise
<
QueryResponse
<
T2
>
>
exec
NoMap
exec
NoMap
(
)
:
Promise
<
O
>
Returns
Promise
<
O
>
exec
Single
exec
Single
(
)
:
Promise
<
T2
|
null
>
Returns
Promise
<
T2
|
null
>
index
index
(
indexName
:
string
)
:
this
Parameters
indexName:
string
Returns
this
limit
limit
(
limit
:
number
)
:
this
Parameters
limit:
number
Returns
this
Protected
map
From
Db
map
From
Db
(
output
:
QueryOutput
)
:
Z
Parameters
output:
QueryOutput
Returns
Z
projection
Expression
projection
Expression
(
attributesToGet
:
Array
<
keyof T
|
string
>
)
:
QueryRequest
<
T
,
Partial
<
T
>
>
Parameters
Rest
attributesToGet:
Array
<
keyof T
|
string
>
Returns
QueryRequest
<
T
,
Partial
<
T
>
>
return
Consumed
Capacity
return
Consumed
Capacity
(
level
:
DynamoDB.ReturnConsumedCapacity
)
:
ReadManyRequest
<
T
,
T2
,
QueryInput
,
QueryOutput
,
QueryResponse
<
T2
>
,
QueryRequest
<
T
,
T2
>
,
QueryRequest
<
T
,
Partial
<
T
>
>
>
Parameters
level:
DynamoDB.ReturnConsumedCapacity
Returns
ReadManyRequest
<
T
,
T2
,
QueryInput
,
QueryOutput
,
QueryResponse
<
T2
>
,
QueryRequest
<
T
,
T2
>
,
QueryRequest
<
T
,
Partial
<
T
>
>
>
where
where
(
conditionDefFns
:
ConditionExpressionDefinitionFunction
[]
)
:
this
Parameters
Rest
conditionDefFns:
ConditionExpressionDefinitionFunction
[]
Returns
this
where
Attribute
where
Attribute<K>
(
attributePath
:
K
)
:
RequestConditionFunctionTyped
<
this
,
T
,
K
>
where
Attribute
(
attributePath
:
string
)
:
RequestConditionFunction
<
this
,
T
>
Type parameters
K
:
keyof T
Parameters
attributePath:
K
Returns
RequestConditionFunctionTyped
<
this
,
T
,
K
>
Parameters
attributePath:
string
Returns
RequestConditionFunction
<
this
,
T
>
where
Partition
Key
where
Partition
Key
(
partitionKeyValue
:
any
)
:
this
Parameters
partitionKeyValue:
any
Returns
this
where
Sort
Key
where
Sort
Key
(
)
:
SortKeyConditionFunction
<
this
>
Returns
SortKeyConditionFunction
<
this
>