Last active
June 12, 2017 11:55
-
-
Save pmk1c/3c6f83cb71d3e505ab0f26ceb8012d22 to your computer and use it in GitHub Desktop.
RestQL - PostResolver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Restql.Blog.PostResolver do | |
def all(_args, _info) do | |
{:ok, Restql.Blog.list_posts |> Restql.Repo.preload(:author)} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment