graphql-scalars
Version:
A collection of scalar types not included in base GraphQL.
18 lines (17 loc) • 375 B
JavaScript
import { GraphQLScalarType } from 'graphql';
export const GraphQLVoid = /*#__PURE__*/ new GraphQLScalarType({
name: 'Void',
description: 'Represents NULL values',
serialize() {
return '';
},
parseValue() {
return null;
},
parseLiteral() {
return null;
},
extensions: {
codegenScalarType: 'void',
},
});