The function call an RPC read plan reads from (PgRest.Plan.Read source: {:call, call}),
compiled by PgRest.SQL.Call.
args is how the arguments reach the function:
{:direct, %{name => value | [value]}}- GET/HEAD query parameters; a variadic parameter collects its repeated values in order, any other keeps the last{:json, body, keys}- a POST body (the raw JSON text) for a function with named parameters;keysare the argument names the request supplies{:single, body}- a POST body passed whole to the single unnamedjson/jsonbparameter
read_only? is true for GET/HEAD and for a POST to a stable or immutable function: the
transaction then runs read-only. scope is {resource, scoped_query} when the result rows
must be checked against the stored, in-scope rows (result_scope: :stored_rows on a scoped
resource), else nil.