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 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

Link to this function

update_current_user(_, map1, map2)

View Source
@spec update_current_user(Absinthe.Resolution.t(), %{input: map()}, %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Update current user

Link to this function

update_user(_, map1, map2)

View Source
@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