(attrs-cache-key op-name attrs-for-env)Pathom keys the resolver cache on op-name+input+params; entities pulled with different attrs must not collide on it.
Pathom keys the resolver cache on op-name+input+params; entities pulled with different attrs must not collide on it.
(expected-shape env)(expected-shape env join-key)What the running pathom node wants from this resolver, as {attr {}}.
join-key is the attr the resolver returns entities under, for resolvers
with a nested output. Nil when the resolver runs outside of a pathom plan.
What the running pathom node wants from this resolver, as `{attr {}}`.
`join-key` is the attr the resolver returns entities under, for resolvers
with a nested output. Nil when the resolver runs outside of a pathom plan.(requested-attrs shape attrs)The subset of attrs that the running query asks for.
Falls back to all of them when pathom tells us nothing, so that a resolver
called outside of a plan still returns a whole entity.
The subset of `attrs` that the running query asks for. Falls back to all of them when pathom tells us nothing, so that a resolver called outside of a plan still returns a whole entity.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |