Package Exports
- data-api-unwrap
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (data-api-unwrap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
data-api-unwrap
Unwrap AWS RDS Data API responses. Taken out of jeremydaly/data-api-client.
install
yarn add --dev data-api-unwrapnpm install --save-dev data-api-unwrapusage
const UnWrap = require('data-api-unwrap');
const rds = new RDSDataService();
console.log(
UnWrap(
await rds
.executeStatement({
sql: 'SELECT * FROM categories',
includeResultMetadata: true,
})
.promise(),
),
);[
{
"created": "2019-11-12 22:00:11",
"deleted": null,
"description": null,
"id": 1,
"modified": "2019-11-12 22:15:25",
"name": "Category 1"
},
{
"created": "2019-11-12 22:17:11",
"deleted": null,
"description": "Description of Category 2",
"id": 2,
"modified": "2019-11-12 22:21:36",
"name": "Category 2"
}
]license
BSD-3-Clause