Expose more statistics
* differenciate local & all events/comments/groups * add instance follows/followings Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -10,9 +10,20 @@ defmodule Mobilizon.GraphQL.Schema.StatisticsType do
|
||||
object :statistics do
|
||||
# Instance name
|
||||
field(:number_of_users, :integer, description: "The number of local users")
|
||||
field(:number_of_events, :integer, description: "The number of local events")
|
||||
field(:number_of_comments, :integer, description: "The number of local comments")
|
||||
field(:number_of_groups, :integer, description: "The number of local groups")
|
||||
field(:number_of_events, :integer, description: "The total number of events")
|
||||
field(:number_of_local_events, :integer, description: "The number of local events")
|
||||
field(:number_of_comments, :integer, description: "The total number of comments")
|
||||
field(:number_of_local_comments, :integer, description: "The number of local events")
|
||||
field(:number_of_groups, :integer, description: "The total number of groups")
|
||||
field(:number_of_local_groups, :integer, description: "The number of local groups")
|
||||
|
||||
field(:number_of_instance_followers, :integer,
|
||||
description: "The number of this instance's followers"
|
||||
)
|
||||
|
||||
field(:number_of_instance_followings, :integer,
|
||||
description: "The number of instances this instance follows"
|
||||
)
|
||||
end
|
||||
|
||||
object :statistics_queries do
|
||||
|
||||
Reference in New Issue
Block a user