View Source GlificWeb.Resolvers.Profiles (Glific v5.1.6)

Profile Resolver which sits between the GraphQL schema and Glific Profile Context API. This layer basically stitches together one or more calls to resolve the incoming queries.

Link to this section Summary

Functions

This method will create a profile

This method will delete a profile

This method will update a profile

Link to this section Functions

Link to this function

create_profile(_, map, _)

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

This method will create a profile

Link to this function

delete_profile(_, map1, map2)

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

This method will delete a profile

Link to this function

update_profile(_, map1, map2)

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

This method will update a profile