File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,11 @@ def find_all_by_composite_key(hash_key, options = {})
120120 # field :gender, :string
121121 # field :rank :number
122122 # table :key => :email
123- # global_secondary_index :hash_key => :age, :range_key => :gender
123+ # global_secondary_index :hash_key => :age, :range_key => :rank
124124 # end
125- # User.find_all_by_secondary_index(:age => 5, :range => {"rank.lte" => 10})
125+ # # NOTE: the first param and the second param are both hashes,
126+ # # so curly braces must be used on first hash param if sending both params
127+ # User.find_all_by_secondary_index({:age => 5}, :range => {"rank.lte" => 10})
126128 #
127129 # @param [Hash] eg: {:age => 5}
128130 # @param [Hash] eg: {"rank.lte" => 10}
You can’t perform that action at this time.
0 commit comments