DEV Community

Declan Price
Declan Price

Posted on

Making dynamodb queries just a little bit easier.

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'.

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.

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.

For example, an update request would now look like this.

store
.update()
.key({ id: customer.id })
.update(set('firstName', 'john'))
.condition(notExists('id'), or(), eq('name', 'john'))
.exec()

Github

Docs

NPM

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay