JSPM

data-api-unwrap

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q17338F
  • License BSD-3-Clause

Unwrap AWS RDS Data API responses

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-unwrap
npm install --save-dev data-api-unwrap

usage

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