2019-01-14 17:13:17 +01:00
|
|
|
defmodule MobilizonWeb.Schema.Actors.MemberType do
|
2019-01-14 17:48:08 +01:00
|
|
|
@moduledoc """
|
|
|
|
Schema representation for Member
|
|
|
|
"""
|
2019-01-14 17:13:17 +01:00
|
|
|
use Absinthe.Schema.Notation
|
|
|
|
|
|
|
|
@desc """
|
|
|
|
Represents a member of a group
|
|
|
|
"""
|
|
|
|
object :member do
|
|
|
|
field(:parent, :group, description: "Of which the profile is member")
|
|
|
|
field(:person, :person, description: "Which profile is member of")
|
|
|
|
field(:role, :integer, description: "The role of this membership")
|
|
|
|
field(:approved, :boolean, description: "Whether this membership has been approved")
|
|
|
|
end
|
|
|
|
end
|