Glific v0.3.1 Glific.Groups.ContactGroup View Source

A pipe for managing the contact groups

Link to this section Summary

Functions

Standard changeset pattern we use for all data types

Link to this section Types

Specs

t() :: %Glific.Groups.ContactGroup{
  __meta__: Ecto.Schema.Metadata.t(),
  contact: Glific.Contacts.Contact.t() | Ecto.Association.NotLoaded.t() | nil,
  contact_id: term(),
  group: Glific.Groups.Group.t() | Ecto.Association.NotLoaded.t() | nil,
  group_id: term(),
  id: non_neg_integer() | nil
}

Link to this section Functions

Link to this function

changeset(contact, attrs)

View Source

Specs

changeset(t(), map()) :: Ecto.Changeset.t()

Standard changeset pattern we use for all data types