Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default parameter value is lost #53

Open
sp00m opened this issue Jun 21, 2018 · 0 comments
Open

Default parameter value is lost #53

sp00m opened this issue Jun 21, 2018 · 0 comments

Comments

@sp00m
Copy link

sp00m commented Jun 21, 2018

Given:

type Query {
    foo(
        bar: Int = 1
    ): Foo!
}

The generated doc will show:

type Query {
    foo(
        bar: Int
    ): Foo!
}

The default 1 value isn't displayed anymore.

treble-snake added a commit to treble-snake/graphdoc that referenced this issue Apr 2, 2021
Arguments and input values might have a default value,
which should be reflected in the docs.
This commit will show it like `limit: Int = 10`.

Related: 2fd#53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant