mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-25 01:12:30 +00:00
289ba03960
An event can indeed have several address types Signed-off-by: Thomas Citharel <tcit@tcit.fr>
16 lines
527 B
Elixir
16 lines
527 B
Elixir
defmodule MobilizonWeb.Schema.Actors.MemberType do
|
|
@moduledoc """
|
|
Schema representation for Member
|
|
"""
|
|
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
|