MCPcopy Create free account
hub / github.com/dagger/dagger / QueryBuilder

Method QueryBuilder

cmd/dagger/shell_state.go:353–365  ·  view source on GitHub ↗

QueryBuilder returns a querybuilder.Selection from the shell state

(dag *dagger.Client)

Source from the content-addressed store, hash-verified

351
352// QueryBuilder returns a querybuilder.Selection from the shell state
353func (st ShellState) QueryBuilder(dag *dagger.Client) *querybuilder.Selection {
354 q := querybuilder.Query().Client(dag.GraphQLClient())
355 for _, call := range st.Calls {
356 q = q.Select(call.Name)
357 for n, v := range call.Arguments {
358 q = q.Arg(n, v)
359 }
360 if call.InlineFragment != "" {
361 q = q.InlineFragment(call.InlineFragment)
362 }
363 }
364 return q
365}
366
367// GetTypeDef returns the introspection definition for the return type of the last function call
368func (st *ShellState) GetTypeDef(modDef *moduleDef) (*modTypeDef, error) {

Callers 5

StateResultMethod · 0.45
NewLLMSessionFunction · 0.45
syncVarsToLLMMethod · 0.45
syncVarsFromLLMMethod · 0.45

Calls 4

QueryMethod · 0.65
SelectMethod · 0.65
GraphQLClientMethod · 0.45
ArgMethod · 0.45

Tested by

no test coverage detected