parser

package
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: 4 Imported by: 1

Documentation

Overview

Package parser implements an experimental parser for a subset of graphql.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMultipleOperations
	ErrMultipleOperations = errors.New("parser: multiple graphql operations")
)

Functions

func IsMalformedOperation

func IsMalformedOperation(err error) bool

func ParseOperation

func ParseOperation(query []byte) (*graphql.Operation, error)

ParseOperation attempts to parse a graphql.Operation from a byte slice.

Types

type ErrMalformedOperation

type ErrMalformedOperation struct {
	// contains filtered or unexported fields
}

ErrMalformedOperation means there was a parsing error with the provided query

func (ErrMalformedOperation) Error

func (e ErrMalformedOperation) Error() string

Jump to

Keyboard shortcuts

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