View Source GlificWeb.Resolvers.Users (Glific v5.1.6)
User Resolver which sits between the GraphQL schema and Glific User Context API. This layer basically stitches together one or more calls to resolve the incoming queries.
Link to this section Summary
Functions
Get the count of users filtered by args
Update current user
Update user Later on this end point will be accessible only to role admin
Link to this section Functions
@spec count_users(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of users filtered by args
@spec update_current_user(Absinthe.Resolution.t(), %{input: map()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Update current user
@spec update_user(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Update user Later on this end point will be accessible only to role admin