Skip to content

Instantly share code, notes, and snippets.

@irrationnelle
Created March 20, 2018 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irrationnelle/3e41e8ca13bf846ee22a2aff0152053b to your computer and use it in GitHub Desktop.
Save irrationnelle/3e41e8ca13bf846ee22a2aff0152053b to your computer and use it in GitHub Desktop.
import AWS from 'aws-sdk';
import api from './api';
const { unmarshalled } = AWS.DynamoDB.Converter;
export const getUnmarshalledItem = () => api.fetch().then(({ data }) => unmarshalled(data));
export const getItem = () => api.fetch().then(({ data }) => data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment