https://github.com/ariefrahmansyah/bindgraphql
Easily create new graphql.Object from existing struct.
https://github.com/ariefrahmansyah/bindgraphql
go graphql
Last synced: 9 months ago
JSON representation
Easily create new graphql.Object from existing struct.
- Host: GitHub
- URL: https://github.com/ariefrahmansyah/bindgraphql
- Owner: ariefrahmansyah
- Created: 2017-04-03T01:22:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-09T00:27:56.000Z (about 9 years ago)
- Last Synced: 2025-04-14T13:58:56.581Z (about 1 year ago)
- Topics: go, graphql
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 20
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bindgraphql [](https://godoc.org/github.com/ariefrahmansyah/bindgraphql) [](https://circleci.com/gh/ariefrahmansyah/bindgraphql/tree/master) [](https://coveralls.io/github/ariefrahmansyah/bindgraphql?branch=master) [](https://goreportcard.com/report/github.com/ariefrahmansyah/bindgraphql)
You have RESTful API. You have your struct, it use JSON tag. Then, one of your developer friend introduce you to GraphQL.
If you want to migrate your API to GraphQL without so much pain, this library is for you.
```go
import "github.com/ariefrahmansyah/bindgraphql"
graphObj, err := bind.NewObject("YourObj", yourObj)
```
# Example
See [example.go](https://github.com/ariefrahmansyah/bindgraphql/blob/master/example/example.go).
# Contributor
* [Ahmad Muzakki](https://gist.github.com/ahmadmuzakki29/73fc1e21bf7ae087a9ac53299032f09c)