How do I query data from DynamoDB using Javascript?

I want to count the number of weekly users. How do I query data from DynamoDB using Javascript?

Hi @Anthony_Gray,

Let me clarify. You have a database in Amazon DynamoDB and you would like to query the data from your Retool app? If so, you can add a resource by going to the "Resources" tab and clicking on "Create new" resource. In the search bar, type Dynamo

And click on the Amazon DynamoDB to configure your resource. After you name it, you can then create queries in your app.

Or if your question is specifically how to add a query to count the number of weekly users, you can create a "resource query" and in the search bar, add the name of your database. This will bring up a SQL code block where you can enter your SQL queries.

Let me know if that answers your question!