AbsintheHelpers.Transforms.ToInteger (absinthe_helpers v0.1.9)
A transformation that converts string input values to integers in an Absinthe schema.
Add the transformation in your schema:
alias AbsintheHelpers.Transforms.ToInteger
field :employee_id, :id do
meta transforms: [ToInteger]
end
Summary
Functions
Callback implementation for c:AbsintheHelpers.Transform.call/2
.
Functions
Link to this function
call(item, opts)
Callback implementation for c:AbsintheHelpers.Transform.call/2
.