Skip to content

Schema drift: GraphQL schema updated from live endpoints#52

Draft
github-actions[bot] wants to merge 1 commit intomainfrom
auto/schema-update-20260308-081203
Draft

Schema drift: GraphQL schema updated from live endpoints#52
github-actions[bot] wants to merge 1 commit intomainfrom
auto/schema-update-20260308-081203

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Mar 8, 2026

Schema Drift Detected

Triggered by nightly schedule

Schema Changes

 scripts/graphql-schema-mainnet.json |  2334 +++++++-
 scripts/graphql-schema-testnet.json | 10496 ++++++++++++++++++++++++----------
 2 files changed, 9616 insertions(+), 3214 deletions(-)

⚠️ Validation found errors — some documented queries may be broken by this schema change.

Full validation output
Validating 242 queries against mainnet + testnet schemas...

❌ 14 mainnet error(s):

  docs/_data/graphql-api/queries/leaderboard/account-rank.md:70 [Account Rank Lookup] (mainnet)
    → Field "total_pnl" does not exist on type "account_pnl_rank"
  docs/_data/graphql-api/queries/leaderboard/account-rank.md:17 [Code block at line 17] (mainnet)
    → Field "total_pnl" does not exist on type "account_pnl_rank"
  docs/_data/graphql-api/queries/leaderboard/account-rank.md:17 [Code block at line 17] (mainnet)
    → Field "total_volume" does not exist on type "account_pnl_rank"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:64 [Protocol Leaderboard Stats] (mainnet)
    → Field "total_pnl_sum" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:64 [Protocol Leaderboard Stats] (mainnet)
    → Field "avg_pnl" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:64 [Protocol Leaderboard Stats] (mainnet)
    → Field "median_pnl" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:64 [Protocol Leaderboard Stats] (mainnet)
    → Field "total_volume" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:64 [Protocol Leaderboard Stats] (mainnet)
    → Field "avg_volume" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:17 [Code block at line 17] (mainnet)
    → Field "total_pnl_sum" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:17 [Code block at line 17] (mainnet)
    → Field "avg_pnl" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:17 [Code block at line 17] (mainnet)
    → Field "median_pnl" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:17 [Code block at line 17] (mainnet)
    → Field "total_volume" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:17 [Code block at line 17] (mainnet)
    → Field "avg_volume" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/vault-leaderboard.md:56 [Code block at line 56] (mainnet)
    → Field "get_vault_leaderboard_period" does not exist on type "query_root"

⚠ 14 testnet-only warning(s):

  docs/_data/graphql-api/queries/leaderboard/account-rank.md:70 [Account Rank Lookup] (testnet)
    → Field "total_pnl" does not exist on type "account_pnl_rank"
  docs/_data/graphql-api/queries/leaderboard/account-rank.md:17 [Code block at line 17] (testnet)
    → Field "total_pnl" does not exist on type "account_pnl_rank"
  docs/_data/graphql-api/queries/leaderboard/account-rank.md:17 [Code block at line 17] (testnet)
    → Field "total_volume" does not exist on type "account_pnl_rank"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:64 [Protocol Leaderboard Stats] (testnet)
    → Field "total_pnl_sum" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:64 [Protocol Leaderboard Stats] (testnet)
    → Field "avg_pnl" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:64 [Protocol Leaderboard Stats] (testnet)
    → Field "median_pnl" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:64 [Protocol Leaderboard Stats] (testnet)
    → Field "total_volume" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:64 [Protocol Leaderboard Stats] (testnet)
    → Field "avg_volume" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:17 [Code block at line 17] (testnet)
    → Field "total_pnl_sum" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:17 [Code block at line 17] (testnet)
    → Field "avg_pnl" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:17 [Code block at line 17] (testnet)
    → Field "median_pnl" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:17 [Code block at line 17] (testnet)
    → Field "total_volume" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/leaderboard-stats.md:17 [Code block at line 17] (testnet)
    → Field "avg_volume" does not exist on type "pnl_leaderboard_stats"
  docs/_data/graphql-api/queries/leaderboard/vault-leaderboard.md:56 [Code block at line 56] (testnet)
    → Field "get_vault_leaderboard_period" does not exist on type "query_root"


🤖 Generated by validate-graphql workflow

Schema drift detected from live endpoints.
Trigger: schedule

Co-authored-by: GitHub Actions <action@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants