Closed nitesh-varma closed 4 years ago
Hope this helps you @nitesh-varma
# First, define your index aside attributes
global_secondary_index(
:c_index,
hash_key: :a,
range_key: :c,
projection: {
projection_type: 'ALL',
},
)
# then set `index_name` keyword parameter and query as always
query(
index_name: :c_index,
...
)
Hi,
How to query against local or global index?
Can you please advise, how we can query against created local or global index of table/model?
Thanks