Current section
Files
Jump to
Current section
Files
lib/templates/types.eex
defmodule <%= context.web_module %>.Schema.<%= schema.alias %>Types do
use Absinthe.Schema.Notation
object :<%= schema.name %> do
<%= for {k, v} <- schema.attrs do %>
field :<%= k %>, :<%= v %>
<% end %>
end
end