View Source Bonfire.Social.Graph.Import (Bonfire v0.9.10-classic-beta.156)

Summary

Functions

Import follows, ghosts, silences, or blocks from a CSV file.

Perform the queued job based on the operation and user.

Perform an import operation for the user.

Functions

Link to this function

import_from_csv_file(arg1, user, path)

View Source

Import follows, ghosts, silences, or blocks from a CSV file.

Examples

iex> import_from_csv_file(:follows, user, "path/to/file.csv")

Perform the queued job based on the operation and user.

Examples

iex> perform(%{args: %{"op" => "follows_import", "user_id" => "user1", "identifier" => "id1"}})
:ok
Link to this function

perform(op, user, identifier)

View Source
@spec perform(atom(), Bonfire.Data.Identity.User.t(), list()) ::
  :ok | list() | {:error, any()}

Perform an import operation for the user.

Examples

iex> perform("follows_import", user, "identifier")