types.ex:
I try to migrate elixir api, so ı am try to work with some example project on github, so ı have a project, it has absinthe_ecto, but I here says “GitHub - absinthe-graphql/absinthe_ecto: DEPRECATED: Use dataloader” it depreceted, use dataloader instead of it. in project how I will use Dataloader instead of the absinthe_ecto?
defmodule BlogWeb.Schema.Types do
use Absinthe.Schema.Notation
use Absinthe.Ecto, repo: Blog.Repo
object :user do
field :id, :id
field :name, :string
field :email, :string
field :posts, list_of(:post), resolve: assoc(:posts)
end
end