graphql

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(dataSources db.DataSources, storage *storage.Storage) func(w http.ResponseWriter, r *http.Request)

Handler is an HTTP handler for GraphQL queries

Types

type DataSource

type DataSource struct {
	Name   string   `json:"name"`
	Tables []*Table `json:"tables"`
}

type Payload

type Payload struct {
	Query         string                 `json:"query"`
	OperationName string                 `json:"operationName,omitempty"`
	Variables     map[string]interface{} `json:"variables,omitempty"`
}

type Table

type Table struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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