GraphQLUpload.js 500 B

123456789101112131415161718192021
  1. 'use strict'
  2. exports.__esModule = true
  3. exports.GraphQLUpload = void 0
  4. var _graphql = require('graphql')
  5. const GraphQLUpload = new _graphql.GraphQLScalarType({
  6. name: 'Upload',
  7. description: 'The `Upload` scalar type represents a file upload.',
  8. parseValue: value => value,
  9. parseLiteral() {
  10. throw new Error('‘Upload’ scalar literal unsupported.')
  11. },
  12. serialize() {
  13. throw new Error('‘Upload’ scalar serialization unsupported.')
  14. }
  15. })
  16. exports.GraphQLUpload = GraphQLUpload