{"id":15627704,"url":"https://github.com/fabienjuif/dynamo-client","last_synced_at":"2026-02-22T23:04:44.513Z","repository":{"id":38218473,"uuid":"259054967","full_name":"fabienjuif/dynamo-client","owner":"fabienjuif","description":"An opinionated async/await wrapper to AWS dynamo client (document)","archived":false,"fork":false,"pushed_at":"2023-01-06T04:27:14.000Z","size":2390,"stargazers_count":1,"open_issues_count":19,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T12:42:02.598Z","etag":null,"topics":["aws","document","documents","dynamo","dynamodb","helper","nantes","promises","wrapper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabienjuif.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-26T14:46:21.000Z","updated_at":"2020-05-17T09:11:05.000Z","dependencies_parsed_at":"2023-02-05T07:31:51.212Z","dependency_job_id":null,"html_url":"https://github.com/fabienjuif/dynamo-client","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabienjuif%2Fdynamo-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabienjuif%2Fdynamo-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabienjuif%2Fdynamo-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabienjuif%2Fdynamo-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabienjuif","download_url":"https://codeload.github.com/fabienjuif/dynamo-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569120,"owners_count":20959758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","document","documents","dynamo","dynamodb","helper","nantes","promises","wrapper"],"created_at":"2024-10-03T10:18:55.367Z","updated_at":"2025-10-28T21:54:19.060Z","avatar_url":"https://github.com/fabienjuif.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @fabienjuif/dynamo-client\n\n\u003e An opinionated async/await wrapper to AWS dynamo client (document)\n\n## API\n\nFirst, you have to create a client:\n\n```js\nimport { createClient } from '@fabienjuif/dynamo-client'\n\n// createClient(region, apiVersion)\n// - default region is process.env.AWS_REGION\n// - default apiVersion is 2012-08-10\nconst dynamoClient = createClient()\n```\n\n### delete\n\n```js\n// collection(tableName, key = 'id')\n//    - key can be a string if you only use a partition key\n//    - or it can be an array if you use a partition and a sort key\n// delete(keyValue)\nawait dynamoClient.collection('my-collection').delete('my-id')\n```\n\n### get\n\n```js\n// get(keyValue, projectionKeys = undefined)\nawait dynamoClient.collection('my-collection').get('my-id')\nawait dynamoClient.collection('my-collection').get('my-id', ['id', 'name'])\n```\n\n### put\n\n```js\nawait dynamoClient.collection('my-collection').put({\n  id: 'my-id',\n  name: 'name !!',\n})\n```\n\n### update\n\n```js\n// update(data)\nawait dynamoClient.collection('my-collection').update({\n  id: 'my-id',\n  name: 'name !!',\n  score: undefined, // this field will be removed\n})\n```\n\n### query\n\n```js\n// query(keys)\nawait dynamoClient.collection('my-collection').query('my-partition-id')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabienjuif%2Fdynamo-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabienjuif%2Fdynamo-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabienjuif%2Fdynamo-client/lists"}