<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Declan Price</title>
    <description>The latest articles on DEV Community by Declan Price (@declanprice).</description>
    <link>https://dev.to/declanprice</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1039815%2F6caa4f84-8763-489d-963a-9e2a23e71581.png</url>
      <title>DEV Community: Declan Price</title>
      <link>https://dev.to/declanprice</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/declanprice"/>
    <language>en</language>
    <item>
      <title>Making dynamodb queries just a little bit easier.</title>
      <dc:creator>Declan Price</dc:creator>
      <pubDate>Thu, 28 Nov 2024 01:00:09 +0000</pubDate>
      <link>https://dev.to/declanprice/making-dynamodb-queries-just-a-little-bit-easier-3h8k</link>
      <guid>https://dev.to/declanprice/making-dynamodb-queries-just-a-little-bit-easier-3h8k</guid>
      <description>&lt;p&gt;If you've used the native AWS DynamoDBClient for anything other than a simple get request you probably find yourself looking at the documentation a lot thinking 'how does that work again'.&lt;/p&gt;

&lt;p&gt;There are a few libraries out there that make working with DynamoDB a little bit easier however most require extra data mapping classes and bloat that's not necessary for a lot of use cases.&lt;/p&gt;

&lt;p&gt;I developed Dynostore as a lightweight query builder layer on top of the DynamoDBClient to help with the uses cases that require a powerful query builder without the extra bloat.&lt;/p&gt;

&lt;p&gt;For example, an update request would now look like this.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;store&lt;br&gt;
  .update()&lt;br&gt;
  .key({ id: customer.id })&lt;br&gt;
  .update(set('firstName', 'john'))&lt;br&gt;
  .condition(notExists('id'), or(), eq('name', 'john'))&lt;br&gt;
  .exec()&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/declanprice/dynostore" rel="noopener noreferrer"&gt;Github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://declanprice.github.io/dynostore/docs/getting-started" rel="noopener noreferrer"&gt;Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/@declanprice/dynostore?activeTab=readme" rel="noopener noreferrer"&gt;NPM&lt;/a&gt;&lt;/p&gt;

</description>
      <category>dynamodb</category>
      <category>typescript</category>
      <category>aws</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
