clientgen

package
v0.0.0-...-84369db Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dest, pkgName string) plugin.Plugin

New returns a plugin that generates a graphql go client

Types

type Data

type Data struct {
	*codegen.Data
}

Data is the structure that is given to the template that generates the client

func (*Data) GoReturnType

func (d *Data) GoReturnType(f *codegen.Field) string

GoReturnType returns the return type of a field in Go format

func (*Data) QueryRequest

func (d *Data) QueryRequest(f *codegen.Field, opName ast.Operation) string

QueryRequest returns a string of the query for a mutation or a query field that selects all fields of the return type

Jump to

Keyboard shortcuts

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