basic_graphql_server

command
v0.0.0-...-08ddf37 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2017 License: ISC Imports: 10 Imported by: 0

Documentation

Overview

Program basic_graphql_server shows a simple HTTP server that exposes a bare schema.

Example:

$ go get github.com/tmc/graphql/example/basic_graphql_server
$ basic_graphql_server &
$ curl -g 'http://localhost:8080/?q={__schema{root_fields{name,description}}}'
{"data":[{"root_fields":[{"description": "Schema entry root field","name":"__schema"}]}}]

Here we see the server showing the available root fields ("schema").

Jump to

Keyboard shortcuts

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