Fork me on GitHub
#pathom
<
2020-11-18
>
souenzzo17:11:00

@wilkerlucio I did a mutation that can handle "any" keys in it's params.

(pc/defmutation my-custom-mutation [_ params]
  {::pc/sym 'app/my-custom-mutation}
  (custom-stuff prams))
This it a bad practice//officially supported??

wilkerlucio20:11:52

nothing wrong with that, pathom considerer maps open as default

👍 3
wilkerlucio20:11:24

currently ::pc/params is purely for documentation sake (users can read from code, also shows up in index explorer)

wilkerlucio20:11:38

in the future I wanna use params to auto-complete mutation options in the query editor

wilkerlucio20:11:50

but regarding about pathom runtime, they don't affect anything

wilkerlucio22:11:25

Pathom 3 Doc Update: New section on Resolver Parameters - https://pathom3.wsscode.com/docs/resolvers/#parameters

🎉 27
3