View Source Bonfire.Me.Accounts.Queries (Bonfire v0.9.10-classic-beta.169)
Queries for Bonfire.Me.Accounts
Summary
Functions
Finds an account by email confirmation token.
Finds an account by email address.
Counts the total number of accounts, or counts the number of records in the provided query.
Retrieves the current account by ID.
Find an account by ID, preloading email and credential information.
Find an account by email address, preloading email and credential information.
Find an account by username, preloading the user (with character, and profile information).
Functions
Finds an account by email confirmation token.
Examples
iex> by_confirm_token("some_token")
#Ecto.Query<...>
Finds an account by email address.
Examples
iex> Bonfire.Me.Accounts.Queries.by_email("example@example.com")
#Ecto.Query<...>
Counts the total number of accounts, or counts the number of records in the provided query.
Examples
iex> Bonfire.Me.Accounts.Queries.count()
iex> Bonfire.Me.Accounts.Queries.count(from(a in Account, where: a.active == true))
Retrieves the current account by ID.
Examples
iex> Bonfire.Me.Accounts.Queries.current("some_id")
Find an account by ID, preloading email and credential information.
Find an account by email address, preloading email and credential information.
Find an account by username, preloading the user (with character, and profile information).