You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -262,7 +262,7 @@ const MyTable = new Table({
262
262
| alias |`string`| no | An optional alias to reference your table when using "batch" features |
263
263
| partitionKey |`string`| yes | The attribute name of your table's partitionKey |
264
264
| sortKey |`string`| no | The attribute name of your table's sortKey |
265
-
| entityField |`boolean` or `string`| no | Disables or overrides entity tracking field name (default: `_tp`) |
265
+
| entityField |`boolean` or `string`| no | Disables or overrides entity tracking field name (default: `_et`) |
266
266
| attributes |`object`| no | Complex type that optionally specifies the name and type of each attributes (see below) |
267
267
| indexes |`object`| no | Complex type that optionally specifies the name keys of your secondary indexes (see below) |
268
268
| autoExecute |`boolean`| no | Enables automatic execution of the DocumentClient method (default: `true`) |
@@ -302,7 +302,7 @@ indexes: {
302
302
}
303
303
```
304
304
305
-
**NOTE:** The **index name** must match the index name on your table as it will be used in queries and other operations.
305
+
**NOTE:** The **index name** must match the index name on your table as it will be used in queries and other operations. The index must include the table's `entityField` attribute for automatic parsing of returned data.
306
306
307
307
## Entities
308
308
@@ -515,7 +515,7 @@ The second argument is an `options` object that specifies the details of your qu
515
515
516
516
| Option | Type | Description |
517
517
| -------- | :--: | ----------- |
518
-
| index |`string`| Name of secondary index to query. If not specified, the query executes on the primary index. (IndexName) |
518
+
| index |`string`| Name of secondary index to query. If not specified, the query executes on the primary index. The index must include the table's `entityField` attribute for automatic parsing of returned data. (IndexName) |
519
519
| limit |`number`| The maximum number of items to retrieve per query. (Limit) |
520
520
| reverse |`boolean`| Reverse the order or returned items. (ScanIndexForward) |
521
521
| consistent |`boolean`| Enable a consistent read of the items (ConsistentRead) |
@@ -564,7 +564,7 @@ The `scan()` method accepts two arguments. The first argument is an `options` ob
564
564
565
565
| Option | Type | Description |
566
566
| -------- | :--: | ----------- |
567
-
| index |`string`| Name of secondary index to scan. If not specified, the query executes on the primary index. (IndexName) |
567
+
| index |`string`| Name of secondary index to scan. If not specified, the query executes on the primary index. The index must include the table's `entityField` attribute for automatic parsing of returned data. (IndexName) |
568
568
| limit |`number`| The maximum number of items to retrieve per scan. (Limit) |
569
569
| consistent |`boolean`| Enable a consistent read of the items (ConsistentRead) |
570
570
| capacity |`string`| Return the amount of consumed capacity. One of either `none`, `total`, or `indexes` (ReturnConsumedCapacity) |
0 commit comments