querybuilder

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsZeroValue

func IsZeroValue(value any) bool

func MarshalGQL

func MarshalGQL(v any) string

Types

type Selection

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

func Query

func Query() *Selection

func (*Selection) Arg

func (s *Selection) Arg(name string, value any) *Selection

func (*Selection) Bind

func (s *Selection) Bind(v interface{}) *Selection

func (*Selection) Build

func (s *Selection) Build() string

func (*Selection) Execute

func (s *Selection) Execute(ctx context.Context, c graphql.Client) error

func (*Selection) Select

func (s *Selection) Select(name string) *Selection

func (*Selection) SelectWithAlias

func (s *Selection) SelectWithAlias(alias, name string) *Selection

func (*Selection) Unpack

func (s *Selection) Unpack(data interface{}) error

Jump to

Keyboard shortcuts

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