da2a0593ca
Fix lint Disable modern mode Fixes UI fixes Fixes Ignore .po~ files Fixes Fix homepage Fixes Fixes Mix format Fix tests Fix tests (yeah…) Signed-off-by: Thomas Citharel <tcit@tcit.fr>
25 lines
493 B
Elixir
25 lines
493 B
Elixir
defmodule MobilizonWeb.Schema.ConfigType do
|
|
@moduledoc """
|
|
Schema representation for User
|
|
"""
|
|
use Absinthe.Schema.Notation
|
|
|
|
alias MobilizonWeb.Resolvers.Config
|
|
|
|
@desc "A config object"
|
|
object :config do
|
|
# Instance name
|
|
field(:name, :string)
|
|
field(:description, :string)
|
|
|
|
field(:registrations_open, :boolean)
|
|
end
|
|
|
|
object :config_queries do
|
|
@desc "Get the instance config"
|
|
field :config, :config do
|
|
resolve(&Config.get_config/3)
|
|
end
|
|
end
|
|
end
|