@@ -416,7 +416,7 @@ defmodule Mobilizon.GraphQL.Schema.AdminType do
|
||||
field :admin_update_user, type: :user do
|
||||
arg(:id, non_null(:id), description: "The user's ID")
|
||||
arg(:email, :string, description: "The user's new email")
|
||||
arg(:confirmed, :string, description: "Manually confirm the user's account")
|
||||
arg(:confirmed, :boolean, description: "Manually confirm the user's account")
|
||||
arg(:role, :user_role, description: "Set user's new role")
|
||||
|
||||
arg(:notify, :boolean,
|
||||
|
||||
@@ -280,6 +280,11 @@ defmodule Mobilizon.GraphQL.Schema.UserType do
|
||||
@desc "List instance users"
|
||||
field :users, :users do
|
||||
arg(:email, :string, default_value: "", description: "Filter users by email")
|
||||
|
||||
arg(:current_sign_in_ip, :string,
|
||||
description: "Filter users by current signed-in IP address"
|
||||
)
|
||||
|
||||
arg(:page, :integer, default_value: 1, description: "The page in the paginated users list")
|
||||
arg(:limit, :integer, default_value: 10, description: "The limit of users per page")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user