@twin.org/entity-storage-connector-dynamodb 0.0.1-next.24 → 0.0.1-next.26

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.
@@ -677,7 +677,11 @@ class DynamoDbEntityStorageConnector {
677
677
  const results = await connection.send(query);
678
678
  let entities = [];
679
679
  if (core.Is.arrayValue(results.Items)) {
680
- entities = results.Items.map(item => utilDynamodb.unmarshall(item));
680
+ entities = results.Items.map(item => {
681
+ const unmarshalled = utilDynamodb.unmarshall(item);
682
+ delete unmarshalled[DynamoDbEntityStorageConnector._PARTITION_ID_NAME];
683
+ return unmarshalled;
684
+ });
681
685
  }
682
686
  return {
683
687
  entities,
@@ -675,7 +675,11 @@ class DynamoDbEntityStorageConnector {
675
675
  const results = await connection.send(query);
676
676
  let entities = [];
677
677
  if (Is.arrayValue(results.Items)) {
678
- entities = results.Items.map(item => unmarshall(item));
678
+ entities = results.Items.map(item => {
679
+ const unmarshalled = unmarshall(item);
680
+ delete unmarshalled[DynamoDbEntityStorageConnector._PARTITION_ID_NAME];
681
+ return unmarshalled;
682
+ });
679
683
  }
680
684
  return {
681
685
  entities,
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/entity-storage-connector-dynamodb - Changelog
2
2
 
3
- ## v0.0.1-next.24
3
+ ## v0.0.1-next.26
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/entity-storage-connector-dynamodb",
3
- "version": "0.0.1-next.24",
3
+ "version": "0.0.1-next.26",
4
4
  "description": "Entity Storage connector implementation using DynamoDb storage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "@aws-sdk/util-dynamodb": "3.758",
20
20
  "@twin.org/core": "next",
21
21
  "@twin.org/entity": "next",
22
- "@twin.org/entity-storage-models": "0.0.1-next.24",
22
+ "@twin.org/entity-storage-models": "0.0.1-next.26",
23
23
  "@twin.org/logging-models": "next",
24
24
  "@twin.org/nameof": "next"
25
25
  },