Skip to content

Lock down indexer query result shapes - #384

Open
kitWarse wants to merge 1 commit into
SO4-Markets:mainfrom
kitWarse:test/338-indexer-query-shapes
Open

Lock down indexer query result shapes#384
kitWarse wants to merge 1 commit into
SO4-Markets:mainfrom
kitWarse:test/338-indexer-query-shapes

Conversation

@kitWarse

Copy link
Copy Markdown

Summary

  • Added a focused query result shape contract for frontend-consumed indexer results.
  • Added deterministic fixture-backed tests for markets, positions, and orders.
  • The tests verify exact field names and runtime value types for the nested query nodes used by frontend hooks.

Issue

Changes

  • Added �pps/s03-indexer/src/queryResultShapes.ts with shape definitions and an assertion helper.
  • Added �pps/s03-indexer/tests/query-result-shapes.test.ts to seed fixture entities, query markets/positions/orders, and assert stable result shapes.

Validation

  • Ran: �un test apps/s03-indexer/tests/query-result-shapes.test.ts
  • Result: 3 pass, 0 fail.

Notes

  • Full CI/package validation was not run locally per request.

@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

@kitWarse is attempting to deploy a commit to the Ijai's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@kitWarse Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Indexer: GraphQL query resolver shape

1 participant