1234567891011121314 |
- import { GraphQLScalarType } from 'graphql'
- export const GraphQLUpload = new 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.')
- }
- })
|