Glific v0.3.1 GlificWeb.Resolvers.Users View Source

User Resolver which sits between the GraphQL schema and Glific User Context API. This layer basically stiches 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

Link to this function

count_users(_, args, context)

View Source

Specs

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

Specs

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

Update current user

Specs

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