For example, I'd like to call the inserted_on
timestamp created_at
in the front end in the following Absinthe schema:
defmodule MyAppWeb.Schema.AccountTypes do
use Absinthe.Schema.Notation
object :user do
field :id, :id
field :email, :string
field :inserted_on, :datetime
end
end
but I'm not sure how to setup the Ecto <-> Absinthe mapping. Should I just add a virtual field to my Ecto schema?