legendary-doc-site/apps/content/lib/content/terms.ex
2020-07-28 10:54:24 -05:00

15 lines
327 B
Elixir

defmodule Content.Terms do
@moduledoc """
This module contains functions for retrieving, manipulating, and saving
Terms.
"""
import Ecto.Query
def categories do
from t in Content.Term,
join: tt in Content.TermTaxonomy,
on: t.id == tt.term_id,
where: tt.taxonomy == "category"
end
end