-
Hello! Thanks a lot for this comprehensive library! I'm trying to scan a GSI that I only want to project keys from. I have an attribute that is part of the index key mapping, e.g. UPDATED: Here is the schema:
Now I can get last updated date by state like so:
This works in this simple example where the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Can you please provide a code example of what you are trying to do -- that will clear up some ambiguities. Guessing ... you are trying to do a get / find like:
And you'd like to use GS1 which projects only keys. If the schema defines the foo property and it is used in the value template for the gs1sk, then OneTable should construct the gs1sk value to retrieve based on the value of "foo" in the API call. |
Beta Was this translation helpful? Give feedback.
-
Some comments:
Your return results will not reverse parse fields that use value templates with multiple components like You return results are always just the top level fields. Value templates are input only. However you should get all the returned components key1, key2, key3 if they are projected to the index and they are defined in the schema. |
Beta Was this translation helpful? Give feedback.
Some comments:
Your return results will not reverse parse fields that use value templates with multiple components like
gs1sk: { type: String, value: "${key1}#${key2}#${key3}" }
You return results are always just the top level fields. Value templates are input only. However you should get all the returned components key1, key2, key3 if they are projected to the index and they are defined in the schema.