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])
| 760 | // NodeFunc is the same as Func, except it passes the ObjectResult instead of the |
| 761 | // receiver so that you can access its ID. |
| 762 | func 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, |