(ns auto-ap.graphql.expense-accounts
  (:require [auto-ap.graphql.utils :refer [->graphql]]
            [auto-ap.expense-accounts :as expense-accounts]))

(defn get-expense-account [context args value]
  (->graphql (expense-accounts/expense-accounts (:expense_account_id value))))

(defn get-parent [context args value]
  (->graphql (expense-accounts/expense-accounts (:parent value))))
