Allow to filter search by multiple tags

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-08-03 17:34:50 +02:00
parent 50666e5dd7
commit 2198b2cb87
6 changed files with 25 additions and 18 deletions

View File

@@ -46,7 +46,7 @@ defmodule Mobilizon.GraphQL.Schema.SearchType do
@desc "Search events"
field :search_events, :events do
arg(:term, :string, default_value: "")
arg(:tag, :string)
arg(:tags, :string, description: "A comma-separated string listing the tags")
arg(:location, :string, description: "A geohash for coordinates")
arg(:radius, :float, default_value: 50)
arg(:page, :integer, default_value: 1)