P4/help_comments.md
epoch 1
COMMENTS
What this covers: querying the COMMENTS entity (4 rows; label field ID).
Why you need it: list, fetch, count, and aggregate comments; answer "which/how many/how much" questions.
Syntax:
LIST COMMENTS [WHERE ...] [ORDER BY <FIELD> [DESC]] [LIMIT n] [OFFSET n]GET COMMENTS "<id>"COUNT COMMENTS [BY <FIELD>] [WHERE ...]RESOLVE COMMENTS "<name>"- Operators: IS, IS_NOT, CONTAINS, GT, GTE, LT, LTE; combine with AND / OR.
Returns: JSON rows plus _meta (provenance, epoch, related follow-up queries, hints).
Workflows:
1. COUNT COMMENTS - size the data before listing.
2. RESOLVE COMMENTS "<fuzzy name>" then GET COMMENTS "<canonical>" - resolve before fetching when a name lookup misses.
Constraints:
- Filter only on fields listed in HELP SCHEMA; unknown fields are hard errors.
- Enum values are exact strings.
- Default LIMIT is 100;
countin a LIST response is not the true total.