Note what would be ::pco/input on a defresolver, it's now ::pco/params in mutation.
Different from inputs, parameters don't have auto-resolution, they always come as-is,
but having this information can help on creating extensions (to support auto-resolution
if wanted) and help to understand the system (documentation).
To run the mutation you need to use the EQL interface:
The result of the mutation result comes in the same key as the mutation name.
important
By default the mutation symbol is the fully qualified var name of the mutation. Note
we use the backtick to use the complete name.
tip
Mutations are the first thing the runner executes, this way you know the reads from
the query will have update values, in case the mutation affects something related to
them.
You can also make a join in the mutation to specify what you want from the result. For
this example we will write a resolver to get the file size, and use it as part of the
mutation request: