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

Function NodeFunc

dagql/objects.go:762–764  ·  view source on GitHub ↗

NodeFunc is the same as Func, except it passes the ObjectResult instead of the receiver so that you can access its ID.

(name string, fn NodeFuncHandler[T, A, R])

Source from the content-addressed store, hash-verified

760// NodeFunc is the same as Func, except it passes the ObjectResult instead of the
761// receiver so that you can access its ID.
762func NodeFunc[T Typed, A any, R any](name string, fn NodeFuncHandler[T, A, R]) Field[T] {
763 return NodeFuncWithDynamicInputs(name, fn, nil)
764}
765
766// NodeFuncWithDynamicInputs is like NodeFunc but lets a resolver customize
767// request/cache behavior for each call (for example argument rewrites, TTL,

Callers 15

InstallMethod · 0.92
InstallMethod · 0.92
InstallMethod · 0.92
InstallMethod · 0.92
InstallMethod · 0.92

Calls 1