gen

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ADocument = `mutation A ($input: UserInput!) {
	user(input: $input) {
		id
		profile {
			id
		}
	}
}
`

Variables

View Source
var DocumentOperationNames = map[string]string{
	ADocument: "A",
}

Functions

This section is empty.

Types

type A

type A struct {
	User A_User "json:\"user\" graphql:\"user\""
}

func (*A) GetUser

func (t *A) GetUser() *A_User

type A_User

type A_User struct {
	ID      string          "json:\"id\" graphql:\"id\""
	Profile *A_User_Profile "json:\"profile\" graphql:\"profile\""
}

func (*A_User) GetID

func (t *A_User) GetID() string

func (*A_User) GetProfile added in v0.28.0

func (t *A_User) GetProfile() *A_User_Profile

type A_User_Profile added in v0.28.0

type A_User_Profile struct {
	ID string "json:\"id\" graphql:\"id\""
}

func (*A_User_Profile) GetID added in v0.28.0

func (t *A_User_Profile) GetID() string

type Client

type Client struct {
	Client *clientv2.Client
}

func NewClient

func NewClient(cli clientv2.HttpClient, baseURL string, options *clientv2.Options, interceptors ...clientv2.RequestInterceptor) *Client

func (*Client) A

func (c *Client) A(ctx context.Context, input model.UserInput, interceptors ...clientv2.RequestInterceptor) (*A, error)

Jump to

Keyboard shortcuts

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