{"modulePath":"github.com/dagger/querybuilder","version":"v0.0.0-20260402023115-11ec8f3ee604","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package querybuilder\n\n## Constants\n\n```go\nconst (\n\tGraphQLMarshallerType   = \"XXX_GraphQLType\"\n\tGraphQLMarshallerIDType = \"XXX_GraphQLIDType\"\n\tGraphQLMarshallerID     = \"XXX_GraphQLID\"\n)\n```\n\n## Functions\n\n```go\nfunc IsZeroValue(value any) bool\n```\n\n```go\nfunc MarshalGQL(ctx context.Context, v any) (string, error)\n```\n\n## Types\n\n```go\ntype GraphQLMarshaller interface {\n\t// XXX_GraphQLType is an internal function. It returns the native GraphQL type name\n\tXXX_GraphQLType() string\n\t// XXX_GraphQLIDType is an internal function. It returns the native GraphQL type name for the ID of this object\n\tXXX_GraphQLIDType() string\n\t// XXX_GraphqlID is an internal function. It returns the underlying type ID\n\tXXX_GraphQLID(ctx context.Context) (string, error)\n\tjson.Marshaler\n}\n```\nGraphQLMarshaller is an internal interface for marshalling an object into GraphQL.\n\n```go\ntype QueryBuilder struct {\n\t// contains filtered or unexported fields\n}\n```\nQueryBuilder represents a GraphQL query builder using a chain-based approach\n\n```go\nfunc Mutation() *QueryBuilder\n```\nMutation creates a new QueryBuilder for a mutation operation.\n\n```go\nfunc Query() *QueryBuilder\n```\nQuery creates a new QueryBuilder\n\n```go\nfunc QueryV2() *QueryBuilder\n```\nKeep the old name for backward compatibility\n\n```go\nfunc (q *QueryBuilder) Arg(name string, value any) *QueryBuilder\n```\n\n```go\nfunc (q *QueryBuilder) Bind(v any) *QueryBuilder\n```\n\n```go\nfunc (q *QueryBuilder) Build(ctx context.Context) (string, error)\n```\n\n```go\nfunc (q *QueryBuilder) Client(c graphql.Client) *QueryBuilder\n```\n\n```go\nfunc (q *QueryBuilder) Execute(ctx context.Context) error\n```\n\n```go\nfunc (q *QueryBuilder) InlineFragment(typeName string) *QueryBuilder\n```\nInlineFragment adds an inline fragment type condition (... on TypeName). Subsequent selections will be nested inside the fragment. The response data is flat — the fragment doesn't add a nesting level during unpack.\n\n```go\nfunc (q *QueryBuilder) Root() *QueryBuilder\n```\n\n```go\nfunc (q *QueryBuilder) Select(name string) *QueryBuilder\n```\n\n```go\nfunc (q *QueryBuilder) SelectFields(fields ...string) *QueryBuilder\n```\nSelectFields selects multiple fields at the current level\n\n```go\nfunc (q *QueryBuilder) SelectMixed(simpleFields []string, nestedSelections map[string]*QueryBuilder) *QueryBuilder\n```\nSelectMixed allows mixing simple fields and nested selections at the same level\n\n```go\nfunc (q *QueryBuilder) SelectMultiple(name ...string) *QueryBuilder\n```\n\n```go\nfunc (q *QueryBuilder) SelectNested(field string, subSelection *QueryBuilder) *QueryBuilder\n```\nSelectNested selects a field with nested sub-selections\n\n```go\nfunc (q *QueryBuilder) SelectWithAlias(alias, name string) *QueryBuilder\n```\n\n```go\ntype Selection = QueryBuilder\n```\nType alias for backward compatibility\n\n","path":"github.com/dagger/querybuilder","name":"querybuilder","synopsis":"","isRedistributable":true}
