Created
March 20, 2018 18:58
-
-
Save irrationnelle/3e41e8ca13bf846ee22a2aff0152053b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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