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

Summary

Functions

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

Perform the queued job based on the operation and scope.

Perform an import operation for the scope.

Functions

Link to this function

import_from_csv_file(arg1, scope, path)

View Source

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

Examples

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

Perform the queued job based on the operation and scope.

Examples

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

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

perform(op, identifier, scope)

View Source

Perform an import operation for the scope.

Examples

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