@@ -12,7 +12,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Config do
|
||||
"""
|
||||
@spec get_config(any(), map(), Absinthe.Resolution.t()) :: {:ok, map()}
|
||||
def get_config(_parent, _params, %{context: %{ip: ip}}) do
|
||||
# ip = "2a01:e0a:184:2000:1112:e19d:9779:88c8"
|
||||
ip = "2a01:e0a:184:2000:1112:e19d:9779:88c8"
|
||||
geolix = Geolix.lookup(ip)
|
||||
|
||||
country_code =
|
||||
|
||||
@@ -95,6 +95,14 @@ defmodule Mobilizon.GraphQL.Schema.SearchType do
|
||||
arg(:type, :event_type, description: "Whether the event is online or in person")
|
||||
arg(:category, :string, description: "The category for the event")
|
||||
|
||||
arg(:category_one_of, list_of(:string),
|
||||
description: "The list of categories the event can be in"
|
||||
)
|
||||
|
||||
arg(:status_one_of, list_of(:event_status),
|
||||
description: "The list of statuses this event can have"
|
||||
)
|
||||
|
||||
arg(:radius, :float,
|
||||
default_value: 50,
|
||||
description: "Radius around the location to search in"
|
||||
|
||||
Reference in New Issue
Block a user