Categorize expenses by location

Options
brian
brian Administrator

ADMIN

edited December 2022 in ✂️ Snippets

This snippet provides an endpoint for categorizing expenses based on the location where the transaction occurred.

It features:

  • GET /expense_by_category: an API that queries all transactions and summarizes the amount spent by the category of the location.

You can use this snippet to learn how to Query All Records and:

  • Join two tables
  • Bring a column in from a related table using eval
  • Bring data in from a related column using addon
  • Aggregate the results and sum the amounts

Feel free to add suggestions, requests, or questions in the comments!