Packages

⚠️ EXPERIMENTAL: Expose Ash Resource actions over tRPC with Plug-compatible router/controller and tooling. Breaking changes may occur frequently.

Current section

Files

Jump to
ash_rpc lib ash_rpc config config.ex
Raw

lib/ash_rpc/config/config.ex

defmodule AshRpc.Config.Config do
@moduledoc false
# Formatter used when parsing incoming client field names (e.g., camelCase → snake_case)
def input_field_formatter do
Application.get_env(:ash_rpc, :input_field_formatter, :camel_case)
end
# Formatter used when formatting field names for output/messages
def output_field_formatter do
Application.get_env(:ash_rpc, :output_field_formatter, :camel_case)
end
end