lib/dyna_model/query.rb in dyna_model-0.0.4 vs lib/dyna_model/query.rb in dyna_model-0.0.5

- old
+ new

@@ -115,9 +115,10 @@ results = self.dynamo_db_table.query(hash_value, options.merge(select: :count)) Response.new(results).count end def read_first(hash_value, options={}) + options[:limit] = 1 self.read_range(hash_value, options).first end #:count=>10, :scanned_count=>10, :last_evaluated_key=>{"guid"=>{:s=>"11f82550-5c5d-11e3-9b55-d311a43114ca"}}} # :manual_batching => true|false