import { graphqlUploadKoa } from 'graphql-upload' ; import { GraphQLServiceContext } from '../typings' ; const graphqlUpload = graphqlUploadKoa ( { maxFieldSize : 1e6 , maxFileSize : 4 * 1e6 , maxFiles : 10 , } ) ; function graphqlUploadKoaMiddleware ( ctx , next ) { return graphqlUpload ( ctx as any , next ) ; } export const upload = graphqlUploadKoaMiddleware ;