parse_graphql

package module
v0.0.0-...-4d68ed1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2015 License: ISC Imports: 12 Imported by: 0

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
cmd

Jump to

Keyboard shortcuts

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