Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

asif-mahmud/graphqlgin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL handler for gin

NOTICE: Please use gingraphql package instead of this one as it is wrongly versioned, and go get fails to get the latest version of this package. This has been fixed in that repo.

go workflow

This is a small package to provide a GraphQL handler that can be used with Gin Framework.

Features

  1. Fully tested.
  2. Supports context managers so user can add their application specific data to be used in resolver functions.
  3. Supports file upload out of the box.
  4. Fully compliant with GraphQL multipart specification, so client libraries like Apollo Upload Client will work out of the box.
  5. Allows adding additional http headers either by gin middleware, or right from the resolver functions.

Installation

To add the package to your project run -

go get -u github.com/asif-mahmud/graphqlgin

Documentation

godoc: https://pkg.go.dev/github.com/asif-mahmud/graphqlgin examples: https://pkg.go.dev/github.com/asif-mahmud/graphqlgin#pkg-examples