✨ Add scan option to item:getAll (DynamoDB) (#2085)
* aws dynamodb: fixes using FilterExpression on Query * aws dynamodb: add Scan (again) * ⚡ Improvements to #2021 * ⚡ Set scan to "false" by default to make it none breaking Co-authored-by: Michael Hirschler <michael.vhirsch@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -673,6 +673,38 @@ export const itemFields = [
|
||||
// ----------------------------------
|
||||
// Get All
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Scan',
|
||||
name: 'scan',
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'item',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
description: 'Whether to do an scan or query. Check <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-query-scan.html" target="_blank" >differences</a>',
|
||||
},
|
||||
{
|
||||
displayName: 'Filter Expression',
|
||||
name: 'filterExpression',
|
||||
type: 'string',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
scan: [
|
||||
true,
|
||||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'A filter expression determines which items within the Scan results should be returned to you. All of the other results are discarded.',
|
||||
},
|
||||
{
|
||||
displayName: 'Key Condition Expression',
|
||||
name: 'keyConditionExpression',
|
||||
@@ -689,6 +721,9 @@ export const itemFields = [
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
scan: [
|
||||
false,
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -881,6 +916,13 @@ export const itemFields = [
|
||||
displayName: 'Filter Expression',
|
||||
name: 'filterExpression',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'/scan': [
|
||||
false,
|
||||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'Text that contains conditions that DynamoDB applies after the Query operation,<br>but before the data is returned. Items that do not satisfy the FilterExpression criteria</br>are not returned',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user