Open DimuthuMadushan opened 1 year ago
Is there any update on this? This is affecting the GraphQL schema generation, as we have to access the doc comments inorder to add them to the generated schema.
I've seen we are recommending the users to use inline doc comments in the record types, but that approach doesn't work in GraphQL.
@tharindu-nw any update on this? This is bad UX since we suggest users to use in-line documentation, but it doesn't work with GraphQL documentation. This should be fixed soon.
For GraphQL is the original example/statement still correct? My observation was the opposite, as mentioned in https://github.com/ballerina-platform/ballerina-library/issues/6313.
If the original was correct, is it still the case? Can't we at least access it via the io.ballerina.compiler.api.impl.symbols.BallerinaTypeDefinitionSymbol
when documented at type definition level (as opposed to field level)? cc @dulajdilshan
@MaryamZi In the original example, ReviewInput
is a input parameter type(That detail was missed in the original statement). Your observation is also correct for output types.
For GraphQL is the original example/statement still correct? My observation was the opposite, as mentioned in ballerina-platform/ballerina-library#6313.
If the original was correct, is it still the case? Can't we at least access it via the
io.ballerina.compiler.api.impl.symbols.BallerinaTypeDefinitionSymbol
when documented at type definition level (as opposed to field level)? cc @dulajdilshan
We can access via documentation()
API of the io.ballerina.compiler.api.symbols.TypeDefinitionSymbol
.
Description
Currently, the GraphQL module access the Ballerina documentation to generate the GraphQL schema documentation. To get the record field documentation, we access
RrecordFieldSymbol
at the compiler plugin. But the documentation of the records fields is missing in theRecordFieldSymbol
if the records are defined as follows.The
RecordFieldSymbol
include the doc comments only if the documentation is done in-line. Ex:Affected Version(s)
2201.3.0