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
@spec contacts_field(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Get a specific contact field by id
@spec contacts_fields(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, [Glific.Contacts.ContactsField]}
Get the list of contacts_fields filtered by args
@spec count_contacts_fields(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of contacts_fields filtered by args
@spec create_contacts_field(Absinthe.Resolution.t(), %{input: map()}, %{ context: map() }) :: {:ok, any()} | {:error, any()}
Create contact field
@spec delete_contacts_field(Absinthe.Resolution.t(), %{id: integer()}, %{ context: map() }) :: {:ok, any()} | {:error, any()}
Delete an existing contact field
@spec update_contacts_field( Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{context: map()} ) :: {:ok, any()} | {:error, any()}
Update existing contact field