✂️ Split GraphQL schema into several files
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
14
lib/mobilizon_web/schema/comment.ex
Normal file
14
lib/mobilizon_web/schema/comment.ex
Normal 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
|
||||
Reference in New Issue
Block a user