✂️ Split GraphQL schema into several files
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
13
lib/mobilizon_web/schema/actors/member.ex
Normal file
13
lib/mobilizon_web/schema/actors/member.ex
Normal file
@@ -0,0 +1,13 @@
|
||||
defmodule MobilizonWeb.Schema.Actors.MemberType do
|
||||
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
|
||||
Reference in New Issue
Block a user