Documentation ¶
Index ¶
- Constants
- func IsZeroValue(value any) bool
- func MarshalGQL(ctx context.Context, v any) (string, error)
- type GraphQLMarshaller
- type Selection
- func (s *Selection) Arg(name string, value any) *Selection
- func (s *Selection) Bind(v interface{}) *Selection
- func (s *Selection) Build(ctx context.Context) (string, error)
- func (s *Selection) Client(c graphql.Client) *Selection
- func (s *Selection) Execute(ctx context.Context) error
- func (s *Selection) Root() *Selection
- func (s *Selection) Select(name string) *Selection
- func (s *Selection) SelectMultiple(name ...string) *Selection
- func (s *Selection) SelectWithAlias(alias, name string) *Selection
Constants ¶
View Source
const ( GraphQLMarshallerType = "XXX_GraphQLType" GraphQLMarshallerIDType = "XXX_GraphQLIDType" GraphQLMarshallerID = "XXX_GraphQLID" )
Variables ¶
This section is empty.
Functions ¶
func IsZeroValue ¶
Types ¶
type GraphQLMarshaller ¶
type GraphQLMarshaller interface { // XXX_GraphQLType is an internal function. It returns the native GraphQL type name XXX_GraphQLType() string // XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object XXX_GraphQLIDType() string // XXX_GraphqlID is an internal function. It returns the underlying type ID XXX_GraphQLID(ctx context.Context) (string, error) json.Marshaler }
GraphQLMarshaller is an internal interface for marshalling an object into GraphQL.
type Selection ¶
type Selection struct {
// contains filtered or unexported fields
}
func (*Selection) SelectMultiple ¶ added in v0.12.5
func (*Selection) SelectWithAlias ¶
Click to show internal directories.
Click to hide internal directories.