gcf-express-multipart-stream

0.0.3 • Public • Published

Create readable stream from req.rawBody

For graphql-upload compatibility with Google Cloud Functions, but might be useful with other express middlewares

const gcfMultipartStream = require('gcf-express-multipart-stream')
app.use(gcfMultipartStream)
app.use(
  '/graphql',
  graphqlUploadExpress({ maxFileSize: 10000000, maxFiles: 10 }),
  graphqlHTTP({ schema })
)
exports.upload = app

gcloud beta functions deploy upload --trigger-http

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i gcf-express-multipart-stream

      Weekly Downloads

      2

      Version

      0.0.3

      License

      ISC

      Unpacked Size

      3.21 kB

      Total Files

      6

      Last publish

      Collaborators

      • gcoda