pathom

:pathom: https://github.com/wilkerlucio/pathom/ & https://pathom3.wsscode.com & https://roamresearch.com/#/app/wsscode
souenzzo 2020-11-18T17:53:00.322400Z

@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??

wilkerlucio 2020-11-18T20:00:52.322500Z

nothing wrong with that, pathom considerer maps open as default

1👍
wilkerlucio 2020-11-18T20:01:24.322700Z

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

wilkerlucio 2020-11-18T20:01:38.322900Z

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

wilkerlucio 2020-11-18T20:01:50.323100Z

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

wilkerlucio 2020-11-18T22:31:25.324200Z

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

19🎉