parse_graphql

package module
v0.0.0-...-d08a070 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2015 License: ISC Imports: 12 Imported by: 1

README

parse_graphql

Deploy

Expose a Parse app's schema as a graphql endpoint.

$ parse_graphql serve -h
Usage:
  parse_graphql [OPTIONS] serve [serve-OPTIONS]

Global options:
  -v, --verbose         Be verbose

Help Options:
  -h, --help            Show this help message

[serve command options]
      -l, --listen=     Listen address (:8080)
      -a, --appID=      Parse Application ID [$PARSE_APPLICATION_ID]
      -m, --masterKey=  Parse Master Key [$PARSE_MASTER_KEY]
      -w, --restApiKey= Parse REST API Key [$PARSE_REST_API_KEY]

User signup:

mutation signUp { signUp(username: "foobar", password: "bazbar", email: "foo.bar@gmail.com") { objectId, createdAt, sessionToken } }

User login:

mutation logIn { logIn(username: "foobar", password: "bazbar") { objectId, createdAt, sessionToken } }

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLimit = 5

Functions

This section is empty.

Types

type ParseClass

type ParseClass struct {
	Data map[string]interface{}
	// contains filtered or unexported fields
}

func NewParseClass

func NewParseClass(client *parse.Client, className string, schema map[string]*parse.Schema) (*ParseClass, error)

func (*ParseClass) GraphQLTypeInfo

func (p *ParseClass) GraphQLTypeInfo() schema.GraphQLTypeInfo

type ParseSchema

type ParseSchema struct {
	Schema map[string]*parse.Schema
	// contains filtered or unexported fields
}

func NewParseSchema

func NewParseSchema(client *parse.Client, schema map[string]*parse.Schema, hooks []*parse.HookFunction) (*ParseSchema, error)

NewParseSchema modifies the provided schema and creates "Reverse" fields for Pointers and attaches appropriately named hook functions.

func (*ParseSchema) GraphQLTypeInfo

func (s *ParseSchema) GraphQLTypeInfo() schema.GraphQLTypeInfo

Directories

Path Synopsis
Godeps
_workspace/src/github.com/davecgh/go-spew/spew
Package spew implements a deep pretty printer for Go data structures to aid in debugging.
Package spew implements a deep pretty printer for Go data structures to aid in debugging.
_workspace/src/github.com/tmc/graphql
Package graphql provides utilties to deal with graphql calls
Package graphql provides utilties to deal with graphql calls
_workspace/src/github.com/tmc/graphql/example
Package example contains usage examples.
Package example contains usage examples.
_workspace/src/github.com/tmc/graphql/example/basic_graphql_server
Program basic_graphql_server shows a simple HTTP server that exposes a bare schema.
Program basic_graphql_server shows a simple HTTP server that exposes a bare schema.
_workspace/src/github.com/tmc/graphql/executor
Package executor produces results from a graphql Operation and Schema.
Package executor produces results from a graphql Operation and Schema.
_workspace/src/github.com/tmc/graphql/executor/resolver
Package resolver exposes the Resolver interface
Package resolver exposes the Resolver interface
_workspace/src/github.com/tmc/graphql/executor/tracer
Package tracer provides an interface to attach execution metadata to a context.
Package tracer provides an interface to attach execution metadata to a context.
_workspace/src/github.com/tmc/graphql/handler
Package handler implements an HTTP interface to a Schema.
Package handler implements an HTTP interface to a Schema.
_workspace/src/github.com/tmc/graphql/parser
Package parser implements an experimental parser for a subset of graphql.
Package parser implements an experimental parser for a subset of graphql.
_workspace/src/github.com/tmc/graphql/schema
Package schema provides the ability to register objects to be exposed via a graphql api.
Package schema provides the ability to register objects to be exposed via a graphql api.
_workspace/src/github.com/tmc/parse
Package parse provides a programmatic interface to the Parse.com API
Package parse provides a programmatic interface to the Parse.com API
_workspace/src/golang.org/x/net/context
Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.
Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.
_workspace/src/golang.org/x/net/context/ctxhttp
Package ctxhttp provides helper functions for performing context-aware HTTP requests.
Package ctxhttp provides helper functions for performing context-aware HTTP requests.
cmd

Jump to

Keyboard shortcuts

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