Set fields from value templates when using an "include" index #459
-
I'm trying to design an index for one of my tables and I want it include only a small section of attributes. The PK and SK are both value templates that include some of the attributes from the model. I was wondering if when using this if onetable will automatically extract those attributes and set the fields on the model, or if I still need to add those attributes to my includes list in order to be able to access them. A "keys only" index and |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
If you want a GSI to have a subset of attributes from the table, you need to provide a list in the schema via the project property. You need to specify all attributes including those referenced by value templates. |
Beta Was this translation helpful? Give feedback.
If you want a GSI to have a subset of attributes from the table, you need to provide a list in the schema via the project property. You need to specify all attributes including those referenced by value templates.