graphql_api_go

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2016 License: MIT Imports: 5 Imported by: 0

README

GraphQL API Go

A GrahQL API server written in Go.

Features

  • Todo CRUD
  • User CRUD

Requirements

  • Go 1.5+
  • MySQL 5.6+ * Previous versions may still work but never tested

Dependencies

Quick start

  1. Install dependencies
  2. Import this MySQL database schema
  3. Create database.json file from database.sample.json and save your database configuration
  4. Run the server $ go run main.go

Sending Query

Queries are sent as request payload of HTTP POST command. Example using curl:

$ curl -X POST -d "{
    __schema {
      types {
        name
        kind
      }
    }
  }" "http://localhost:8080/graphql"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL