wirejs-deploy-amplify-basic 0.0.72-table-resource → 0.0.74-table-resource
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,7 @@ import { Bucket, BlockPublicAccess } from 'aws-cdk-lib/aws-s3';
|
|
|
7
7
|
import { Table, AttributeType, BillingMode } from 'aws-cdk-lib/aws-dynamodb';
|
|
8
8
|
import { api } from './functions/api/resource';
|
|
9
9
|
import { auth } from './auth/resource';
|
|
10
|
-
import { TableDefinition } from 'wirejs-resources';
|
|
10
|
+
import { TableDefinition, indexName } from 'wirejs-resources';
|
|
11
11
|
|
|
12
12
|
// @ts-ignore
|
|
13
13
|
import generated from './generated-resources';
|
|
@@ -90,7 +90,7 @@ for (const resource of generated) {
|
|
|
90
90
|
|
|
91
91
|
for (const index of resource.options.indexes ?? []) {
|
|
92
92
|
const gsi = table.addGlobalSecondaryIndex({
|
|
93
|
-
indexName:
|
|
93
|
+
indexName: indexName(index),
|
|
94
94
|
partitionKey: {
|
|
95
95
|
name: index.partition.field,
|
|
96
96
|
type: PKFieldTypes[index.partition.type],
|
|
@@ -4,7 +4,7 @@ import { PutCommand, GetCommand, QueryCommand, ScanCommand, DeleteCommand, } fro
|
|
|
4
4
|
import { Resource, indexName } from 'wirejs-resources';
|
|
5
5
|
import { addResource } from '../resource-collector.js';
|
|
6
6
|
function fieldAlias(name) {
|
|
7
|
-
return `#
|
|
7
|
+
return `#FN${name}`;
|
|
8
8
|
}
|
|
9
9
|
function isFieldComparison(filter) {
|
|
10
10
|
console.log('Checking if filter is a field comparison:', filter);
|
|
@@ -254,7 +254,9 @@ export class DistributedTable extends Resource {
|
|
|
254
254
|
ExpressionAttributeValues: expressionAttributeValues,
|
|
255
255
|
ExpressionAttributeNames: expressionAttributeNames,
|
|
256
256
|
ExclusiveStartKey: lastEvaluatedKey,
|
|
257
|
+
Select: 'ALL_ATTRIBUTES',
|
|
257
258
|
}));
|
|
259
|
+
console.log('DDB Query result:', result);
|
|
258
260
|
for (const item of result.Items || []) {
|
|
259
261
|
if (!item)
|
|
260
262
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wirejs-deploy-amplify-basic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.74-table-resource",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"recursive-copy": "^2.0.14",
|
|
33
33
|
"rimraf": "^6.0.1",
|
|
34
34
|
"wirejs-dom": "^1.0.38",
|
|
35
|
-
"wirejs-resources": "^0.1.
|
|
35
|
+
"wirejs-resources": "^0.1.42-table-resource"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@aws-amplify/backend": "^1.14.0",
|