2019-01-14 16:13:17 +00:00
|
|
|
defmodule MobilizonWeb.Schema.Actors.FollowerType do
|
2019-01-14 16:48:08 +00:00
|
|
|
@moduledoc """
|
|
|
|
Schema representation for Follower
|
|
|
|
"""
|
2019-01-14 16:13:17 +00:00
|
|
|
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
|