Last active
June 12, 2017 11:09
-
-
Save pmk1c/c88f028e021e0f81db8ab35bf3aa9b39 to your computer and use it in GitHub Desktop.
RestQL - GraphQL Types
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.Schema.Types do | |
use Absinthe.Schema.Notation | |
object :post do | |
field :id, :id | |
field :title, :string | |
field :body, :string | |
field :author, :user | |
end | |
object :user do | |
field :id, :id | |
field :name, :string | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment