graphql-platform
graphql-platform copied to clipboard
Documentation for generated mutation-specific Input types does not render default argument values
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
When using default mutation naming conventions to generate the boiler-plate code for mutation-specific Payload and Input types, Banana Cake Pop is expected to also show relevant documentation for these types.
Documentation is being generated typically leveraging XML comments and signature information. For Query fields, the default argument values are properly rendered. For Mutation fields, this should also be the case.
When generating the mutation-specific Input types, the argument default values are omitted from this documentation.
Steps to reproduce
-
Using default MutationNamingConventions, create a mutation accepting several arguments. For example:
public Task<Entity> CreateEntity(string id, bool flag = true) { }
-
Observe the generated
CreateEntityInput
type in GraphQL schema. The documentation in Banana Cake Pop UI is expected to show the default value forflag = true
, but it is omitted.
Relevant log output
No response
Additional Context?
No response
Product
Banana Cake Pop
Version
12.6.0