Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.52 KB

README.md

File metadata and controls

43 lines (30 loc) · 1.52 KB

GraphQL handler for gin

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/gingraphql

Documentation

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

Version history

Version 1.0.2

  • Updated go and package versions
  • Fixed github workflow
  • Fixed package name issue

Version 1.0.0

Stable version release

Version 0.9.0

A clone of the original package https://pkg.go.dev/github.com/asif-mahmud/graphqlgin to fix versioning.