gql

package
v0.0.0-...-f3f7782 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrValidationFailed abstracts the postgres not found error.
	ErrValidationFailed = errors.New("one or more of parameters are invalid")
)

Functions

func ExecuteQuery

func ExecuteQuery(query string, schema graphql.Schema, claims auth.Claims) (*graphql.Result, error)

ExecuteQuery runs our graphql queries

func NewRoot

func NewRoot(db *sqlx.DB) *graphql.Schema

NewRoot create scheme root includes Query and Mutation

Types

type Resolver

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

Resolver struct holds a connection to our database

type TypeResolver

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

TypeResolver struct holds a connection to our database for gql types

Jump to

Keyboard shortcuts

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