graphql

package
v0.0.0-...-0dc708d Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2016 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Schema = `` /* 535-byte string literal not displayed */

Functions

func ResolveCreateUser

func ResolveCreateUser(firstName string, lastName string, email string, password string) (result *userResolver)

func ResolveDeleteUser

func ResolveDeleteUser(id string) *string

func ResolveUpdateUser

func ResolveUpdateUser(id string, firstName *string, lastName *string, email *string, password *string) (result *userResolver)

func ResolveUser

func ResolveUser(id string) (result *userResolver)

func ResolveUsers

func ResolveUsers() (result []*userResolver)

Types

type Resolver

type Resolver struct{}

func (*Resolver) CreateUser

func (r *Resolver) CreateUser(ctx context.Context, args *struct {
	FirstName string
	LastName  string
	Email     string
	Password  string
}) *userResolver

func (*Resolver) DeleteUser

func (r *Resolver) DeleteUser(ctx context.Context, args *struct{ Id graphql.ID }) *graphql.ID

func (*Resolver) UpdateUser

func (r *Resolver) UpdateUser(ctx context.Context, args *struct {
	Id        graphql.ID
	FirstName *string
	LastName  *string
	Email     *string
	Password  *string
}) *userResolver

func (*Resolver) User

func (r *Resolver) User(ctx context.Context, args *struct{ Id graphql.ID }) *userResolver

func (*Resolver) Users

func (r *Resolver) Users(ctx context.Context) []*userResolver

Jump to

Keyboard shortcuts

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