Skip to content

Add docs recipe for raw() and explain() query debugging #5

@TDanks2000

Description

@TDanks2000

Background

QueryBuilder exposes raw() and explain() to inspect the compiled APICalypse body. This is helpful when users are learning how typed builder calls map to IGDB syntax.

Proposed change

Add a compact recipe that builds a typed query, shows the expected compiled output, and explains when to use raw() versus explain().

Acceptance criteria

  • Uses supported builder methods such as .select(), .where(), .sort(), and .limit().
  • Shows the generated APICalypse body in a code block.
  • Mentions that explain() logs and returns the builder for continued chaining.
  • Does not add runtime behavior.

Files likely involved

  • docs/querying.md
  • docs/examples.md
  • src/query/QueryBuilder.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions