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