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

Contact Field Resolver which sits between the GraphQL schema and Glific Contact Field Context API.

Link to this section Summary

Functions

Get a specific contact field by id

Get the list of contacts_fields filtered by args

Get the count of contacts_fields filtered by args

Create contact field

Delete an existing contact field

Update existing contact field

Link to this section Functions

Link to this function

contacts_field(_, map1, map2)

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

Get a specific contact field by id

Link to this function

contacts_fields(_, args, _)

View Source
@spec contacts_fields(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, [Glific.Contacts.ContactsField]}

Get the list of contacts_fields filtered by args

Link to this function

count_contacts_fields(_, args, _)

View Source
@spec count_contacts_fields(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, integer()}

Get the count of contacts_fields filtered by args

Link to this function

create_contacts_field(_, map, _)

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

Create contact field

Link to this function

delete_contacts_field(_, map1, map2)

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

Delete an existing contact field

Link to this function

update_contacts_field(_, map1, map2)

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

Update existing contact field