graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

Documentation for generated mutation-specific Input types does not render default argument values

Open xavierdecoster opened this issue 3 years ago • 0 comments

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

  1. Using default MutationNamingConventions, create a mutation accepting several arguments. For example:

    public Task<Entity> CreateEntity(string id, bool flag = true) { }
    
  2. Observe the generated CreateEntityInput type in GraphQL schema. The documentation in Banana Cake Pop UI is expected to show the default value for flag = true, but it is omitted.

Relevant log output

No response

Additional Context?

No response

Product

Banana Cake Pop

Version

12.6.0

xavierdecoster avatar Feb 16 '22 12:02 xavierdecoster