cube
cube copied to clipboard
Facilitate comments in GraphQL schema generation flow
Is your feature request related to a problem? Please describe. The GraphQL schema that is generated has no comments/documentation. It does not suit inclusion into a well documented federated graph.
Describe the solution you'd like A way to annotate dimensions such that the generated GraphQL types have some degree of documentation.
Describe alternatives you've considered Manual documentation post-generation. It does not suit our needs as we scale up
@tsilvasstk I guess we can use the description to generate comments. Thanks for posting it! Please let us know if you want to work on this!
If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you. If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines. You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.
It looks like this might require a fairly tiny change to this part of code: https://github.com/cube-js/cube/blob/master/packages/cubejs-api-gateway/src/graphql.ts#L378-L398