taoensso / faraday

Amazon DynamoDB client for Clojure
https://www.taoensso.com/faraday
Eclipse Public License 1.0
238 stars 84 forks source link

Query docs don't specify <values> #9

Closed ulsa closed 10 years ago

ulsa commented 10 years ago

The query docs specify prim-key-conds, but don't say what <values> should be. After looking at the sources, I concluded that it must be a collection, so I used a vector and that worked.

funge commented 10 years ago

Trying to figure out the same thing, can you give an example that worked? Thanks.

ulsa commented 10 years ago
(dyn/query *cred* "sometable" {:id [:eq ["someid"]]})
ptaoussanis commented 10 years ago

Hi Ulrik, funge:

Have just pushed v0.13.0 which adds a docstring example to both scan and query to show how the condition format works. Have also made the format a little more flexible, so you can now specify the above as (dyn/query *cred* "sometable" {:id [:eq "someid"]}) (i.e. you can drop the inner vector when there's only a single val).

Hope that helps - just shout if you're still having any trouble or if the docs could be further improved (PRs also welcome).

Cheers! :-)

ulsa commented 10 years ago

Yep, 0.13.0 works fine without a vector. Thanks!

funge commented 10 years ago

Great - thanks!

On Oct 9, 2013, at 12:34 AM, Peter Taoussanis notifications@github.com wrote:

Hi Ulrik, funge:

Have just pushed v0.13.0 which adds a docstring example to both scan and query to show how the condition format works. Have also made the format a little more flexible, so you can now specify the above as (dyn/query cred "sometable" {:id [:eq "someid"]}) (i.e. you can drop the inner vector when there's only a single val).

Hope that helps - just shout if you're still having any trouble or if the docs could be further improved (PRs also welcome).

Cheers! :-)

— Reply to this email directly or view it on GitHub.