✂️ Split GraphQL schema into several files

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-01-14 17:13:17 +01:00
parent 66b0cd8e0c
commit b0bc8dfa5d
13 changed files with 403 additions and 290 deletions

View File

@@ -0,0 +1,14 @@
defmodule MobilizonWeb.Schema.CommentType do
use Absinthe.Schema.Notation
@desc "A comment"
object :comment do
field(:uuid, :uuid)
field(:url, :string)
field(:local, :boolean)
field(:text, :string)
field(:primaryLanguage, :string)
field(:replies, list_of(:comment))
field(:threadLanguages, non_null(list_of(:string)))
end
end