Bonfire.Data.Social.Replied (Bonfire v1.0.0-social-rc.2.13)

View Source

Summary

Types

t()

@type t() :: %Bonfire.Data.Social.Replied{
  __meta__: Ecto.Schema.Metadata.t(),
  activities: Ecto.Schema.has_many(Bonfire.Data.Social.Activity.t()),
  activity: Ecto.Schema.has_one(Bonfire.Data.Social.Activity.t()) | nil,
  boost_count: Ecto.Schema.has_one(Bonfire.Data.Edges.EdgeTotal.t()) | nil,
  controlled: Ecto.Schema.has_many(Bonfire.Data.AccessControl.Controlled.t()),
  direct_replies: Ecto.Schema.has_many(t()),
  direct_replies_count: integer() | nil,
  id: Needle.UID.t() | nil,
  like_count: Ecto.Schema.has_one(Bonfire.Data.Edges.EdgeTotal.t()) | nil,
  nested_replies_count: integer() | nil,
  path: EctoMaterializedPath.UIDs.t() | nil,
  path_sorter: any() | nil,
  pinned: Ecto.Schema.has_one(Bonfire.Data.Edges.Edge.t()) | nil,
  pointer: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil,
  post: Ecto.Schema.belongs_to(Bonfire.Data.Social.Post.t()) | nil,
  post_content:
    Ecto.Schema.belongs_to(Bonfire.Data.Social.PostContent.t()) | nil,
  reply_to: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil,
  reply_to_created: Ecto.Schema.has_one(Bonfire.Data.Social.Created.t()) | nil,
  reply_to_id: Needle.UID.t() | nil,
  reply_to_post: Ecto.Schema.has_one(Bonfire.Data.Social.Post.t()) | nil,
  reply_to_post_content:
    Ecto.Schema.has_one(Bonfire.Data.Social.PostContent.t()) | nil,
  replying_to: map() | nil,
  thread: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil,
  thread_id: Needle.UID.t() | nil,
  thread_post: Ecto.Schema.has_one(Bonfire.Data.Social.Post.t()) | nil,
  thread_post_content:
    Ecto.Schema.has_one(Bonfire.Data.Social.PostContent.t()) | nil,
  thread_replies: Ecto.Schema.has_many(t()),
  total_replies_count: integer() | nil
}

Functions

ancestor_ids(schema)

ancestors(schema)

arrange(structs_list, opts \\ [])

build_child(schema)

changeset(replied \\ %Replied{}, attrs)

children(schema)

delete(struct, key)

depth(schema)

descendants(schema)

get(struct, key, default \\ nil)

make_child_of(changeset, parent)

parent(schema)

parent_id(schema)

path(schema)

path_ids(schema)

put(struct, key, val)

root(schema)

root?(schema)

root_id(schema)

siblings(schema)

subtree(schema)

where_depth(query \\ __MODULE__, depth_params)