Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
name: 'AWSDateTime',
description: GraphQLDateTime.description,
serialize(value) {
return GraphQLDateTime.serialize(value);
},
parseValue(value) {
return GraphQLDateTime.parseValue(value) ? value : undefined;
},
parseLiteral(value) {
return GraphQLDateTime.parseLiteral(value) ? value.value : undefined;
},
});
const AWSJSON = new GraphQLScalarType({
name: 'AWSJSON',
description: GraphQLJSON.description,
serialize(value) {
return JSON.stringify(GraphQLJSON.serialize(value));
},
parseValue(value) {
return GraphQLJSON.parseValue(value);
},
parseLiteral(value) {
return GraphQLJSON.parseLiteral(value);
},
});
const scalars = {
AWSJSON,
AWSDate,
AWSTime,
AWSDateTime,