Skip to content

Commit

Permalink
try to fix absinthe-graphql#4
Browse files Browse the repository at this point in the history
  • Loading branch information
mydearxym authored Dec 5, 2017
1 parent 867060f commit fafe96a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/blog_web/schema/content_types.ex
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
defmodule BlogWeb.Schema.ContentTypes do
use Absinthe.Schema.Notation
alias BlogWeb.Resolvers

@desc "A blog post"
object :post do
field :id, :id
field :title, :string
field :body, :string
field :author, :user
field :author, :user do
resolve &Resolvers.Accounts.find_user/3
end
field :published_at, :naive_datetime
end

Expand Down

0 comments on commit fafe96a

Please sign in to comment.