View Source Bonfire.Poll.Acts.Choices.Upsert (Bonfire v0.9.10-cooperation-beta.80)

Creates a changeset for publishing choice(s) for a question

Epic Options:

  • :current_user - user that will create the choice, required.
  • :choice_attrs (configurable) - attrs to create the choice from, required.
  • :choice_id (configurable) - id to use for the created choice (handy for creating activitypub objects with an id representing their reported creation time)

Act Options:

  • :id - epic options key to find an id to force override with at, default: :choice_id
  • :as - key to assign changeset to, default: :choice.
  • :attrs - epic options key to find the attributes at, default: :choice_attrs.