UNPKG

graphql-upload-ts

Version:

TypeScript-first middleware and Upload scalar for GraphQL multipart requests (file uploads) with support for Apollo Server, Express, Koa, and more.

13 lines (11 loc) 298 B
/** * Safely ignores a Node.js readable stream. */ function ignoreStream(stream) { // Prevent an unhandled error from crashing the process. stream.on('error', () => { }); // Waste the stream. stream.resume(); } export { ignoreStream }; //# sourceMappingURL=ignore-stream.mjs.map