# Discourse-Math badge

**URL:** https://meta.discourse.org/t/discourse-math-badge/160728
**Category:** Support
**Created:** [August 13, 2020, 12:32pm UTC](https://meta.discourse.org/t/discourse-math-badge/160728 "2020-08-13T12:32:03Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)
#### Post date: [August 14, 2020, 6:18am UTC](https://meta.discourse.org/t/discourse-math-badge/160728/6 "2020-08-14T06:18:35Z")

</div>

Hey @Falco

That is a really nice badge query.

Question:

Do you have a list of all the Discourse `:symbols` that can be used in a badge query to help trigger?

The reason I ask is that I see you used `:backfill` and `:post_id` and when I look at this link, I see other Ruby :symbols used:

> [@\[Superseded\] What cool badge queries have you come up with?](https://meta.discourse.org/t/what-cool-badge-queries-have-you-come-up-with/18978):
>
> warning Enabling Badge SQL entails security and performance risks so it is not available by default. For more information, see: [Enable Badge SQL](https://meta.discourse.org/t/badge-sql-can-no-longer-be-edited-by-default/47894) This topic became too long to be easily searched and has been broken down into separate topics. If you have any questions about how to write a badge query, or have one to share, please start a new topic in the #data & reporting category and tag it with the #sql-triggered-badge tag. +1 More ideas: [Some common badge queries](https://meta.discourse.org/t/some-common-badge-queries-idea/31859)

Is there a concise reference for the Discourse Ruby symbols that can be used in a badge query?

I did find this, related to badge triggers (after your post above), which was very helpful:

> [@Creating triggered custom badge queries](https://meta.discourse.org/t/triggered-custom-badge-queries/19336):
>
> bookmark This guide explains how to create triggered custom badge queries in Discourse, including the types of badges, constraints for triggered badges, and an example query. person_raising_hand Required user level: Administrator warning This feature is disabled by default. To enable it, follow [this guide](https://meta.discourse.org/t/badge-sql-can-no-longer-be-edited-by-default/47894). When defining badges in Discourse, you’ll encounter a “Trigger” option with the following choices: Update daily When a user acts on post When a user edits or creates a post When…

In that Discourse article, mentioned are these trigger helpers:

- :user\_ids
- :post\_ids
- :backfill

Are these three “all of them”?

Thanks so much for your help!

---

_[View the full topic](https://meta.discourse.org/t/discourse-math-badge/160728)._
