Skip to content

gcoda/gcf-express-multipart-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Creates readableStream from req.rawBody

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published