Here you will find information about built-in plugins.
pbip/env-wrap-plugin provides a simple way to inject dynamic content
at the env at the start of each request.
The following example demonstrates how to set an attribute
:now in the env that
contains the time that the process starts:
env-wrap-plugin takes a function that will receive the env and should return
the modified env.
Resolve mutations params
On Pathom, when you call a mutation, the params flow without any alteration. The default behavior is meant to give the fastest path possible to invoke mutations.
That said, it's common also to want the params to be "resolved", just like Pathom does with inputs on resolvers.
To make that happen, you can use the
mutation-resolve-params built-in plugin. When
you add this plugin, Pathom will use the
::pco/params as a query and will run that
on the user params, and then deliver the resolved data to the mutation.
::pco/params is inferred from the argument destructuring.