Migrate to Vue 3 and Vite

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-07-12 10:55:28 +02:00
parent 8f4099ee33
commit ee20e03cc2
464 changed files with 31515 additions and 32758 deletions

View File

@@ -26,10 +26,20 @@ defmodule Mobilizon.GraphQL.Schema.StatisticsType do
)
end
object :category_statistics do
field(:key, :string, description: "The key for the category")
field(:number, :integer, description: "The number of events for the given category")
end
object :statistics_queries do
@desc "Get the instance statistics"
field :statistics, :statistics do
resolve(&Statistics.get_statistics/3)
end
@desc "Get the instance's category statistics"
field :category_statistics, list_of(:category_statistics) do
resolve(&Statistics.get_category_statistics/3)
end
end
end