enviodev / hyperindex

📖 Blazing-fast multi-chain indexer
https://envio.dev
72 stars 5 forks source link

Feature Request: Comments in Schema.graphql #305

Open Simon0x opened 5 days ago

Simon0x commented 5 days ago

Hey Envio team,

I'd like to request to have the possibility of defining comments in the schema.graphql file and that they are exported for the playground as well as endpoint that serves the schema. This would also help with frontend tooling like code generators that generate the typescript bindings for React for example based on this.

Hasura seems to have actually a section related to comments: https://hasura.io/learn/graphql/intro-graphql/core-concepts/graphql-comments/

How TheGraph is handling it: https://thegraph.com/docs/en/developing/creating-a-subgraph/#adding-comments-to-the-schema

Regards, Simon

DenhamPreen commented 5 days ago

Thanks Simon 🙏. Definitely a nice feature.