@apollographql/graphql-upload-8-fork
Version:
Fork of graphql-upload@8 that works with graphql@15 for compatibility with apollo-server@2
22 lines (16 loc) • 500 B
JavaScript
exports.__esModule = true
exports.GraphQLUpload = void 0
var _graphql = require('graphql')
const GraphQLUpload = new _graphql.GraphQLScalarType({
name: 'Upload',
description: 'The `Upload` scalar type represents a file upload.',
parseValue: value => value,
parseLiteral() {
throw new Error('‘Upload’ scalar literal unsupported.')
},
serialize() {
throw new Error('‘Upload’ scalar serialization unsupported.')
}
})
exports.GraphQLUpload = GraphQLUpload