Allow to filter by begins_on and ends_on. Redirect explore to search

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-08-05 11:42:23 +02:00
parent d725393fd4
commit b4f500532f
16 changed files with 354 additions and 248 deletions

View File

@@ -51,6 +51,8 @@ defmodule Mobilizon.GraphQL.Schema.SearchType do
arg(:radius, :float, default_value: 50)
arg(:page, :integer, default_value: 1)
arg(:limit, :integer, default_value: 10)
arg(:begins_on, :datetime)
arg(:ends_on, :datetime)
resolve(&Search.search_events/3)
end