import { GraphQLScalarType } from 'graphql' ; interface INameToValueMap { [ key ] : any ; } export const awsScalarMap = { AWSDate : 'String' , AWSTime : 'String' , AWSDateTime : 'String' , AWSTimestamp : 'Int' , AWSEmail : 'String' , AWSJSON : 'String' , AWSURL : 'String' , AWSPhone : 'String' , AWSIPAddress : 'String' , } ; export function getTypeForAWSScalar ( type ) { return awsScalarMap [ type . name ] ; }