Skip to content

A implementation of the graphql multipart request spec for github.com/graphql-go/graphql

License

Notifications You must be signed in to change notification settings

lucassabreu/graphql-multipart-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Multipart Middleware

Codacy Badge FOSSA Status Build Status Coverage Status FOSSA Status

This packages provide a implementation of the graphql multipart request spec created by @jaydenseric to provide support for handling file uploads in a GraphQL server, click here to see the spec.

Using the methods graphqlmultipart.NewHandler or graphqlmultipart.NewMiddlewareWrapper you will be abble to wrap your GraphQL handler and so every request made with the Content-Type: multipart/form-data will be handled by this package (using a provided GraphQL schema), and other Content-Types will be directed to your handler.

The package also provide a scalar for the uploaded content called graphqlmultipart.Upload, when used it will populate your InputObjects or arguments with a *multipart.FileHeader for the uploaded file that can be used inside your queries/mutations.

License

FOSSA Status

About

A implementation of the graphql multipart request spec for github.com/graphql-go/graphql

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published