✂️ 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,15 @@
defmodule MobilizonWeb.Schema.Actors.FollowerType do
use Absinthe.Schema.Notation
@desc """
Represents an actor's follower
"""
object :follower do
field(:target_actor, :actor, description: "What or who the profile follows")
field(:actor, :actor, description: "Which profile follows")
field(:approved, :boolean,
description: "Whether the follow has been approved by the target actor"
)
end
end