fix: align GraphQL docs with live schema#79
Merged
jonathanprozzi merged 5 commits intomainfrom Apr 1, 2026
Merged
Conversation
Verified against live schema introspection. Fixes non-existent fields in example queries (signal_type, block_timestamp, created_at on accounts), a renamed function reference, and an inconsistent search argument name. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Aligned documented types with schema introspection across 9 query docs. Fixes incorrect scalar types (String→numeric, Int→numeric, DateTime→ timestamptz) and object type names (Account→accounts, Term→terms) to match actual Hasura schema types. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds undocumented fields that exist in the live schema: realized/ unrealized PnL percentages on leaderboard entries, deposit/redemption IDs and curve ID on signals, and indexer progress fields on stats. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The example term_id didn't exist on-chain, causing the interactive query to return null. Replaced with the actual "Intuition" atom and updated the expected response to match live data. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All hardcoded example IDs (account, atom, triple) were returning null from the live API. Replaced with real intuitionbilly.eth data so interactive playground examples return actual results. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
signal_type,block_timestamp,created_aton accounts), corrected a renamed function reference, and fixed an inconsistent search argumentVerified against live schema introspection — 242/242 queries pass, mainnet and testnet in sync.
Test plan
node scripts/validate-graphql-queries.jspasses (242/242 queries valid)🤖 Generated with Claude Code