gcf-express-multipart-stream
v0.0.3
Published
Creates a readable stream from req.rawBody
Downloads
4
Readme
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