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

FieldConfigArgument descriptions are not used in GraphiQL #40

Open
limoli opened this issue Nov 1, 2018 · 0 comments
Open

FieldConfigArgument descriptions are not used in GraphiQL #40

limoli opened this issue Nov 1, 2018 · 0 comments

Comments

@limoli
Copy link

limoli commented Nov 1, 2018

Given the following configuration:

Args: relay.NewConnectionArgs(graphql.FieldConfigArgument{
    "fromDate": &graphql.ArgumentConfig{
        Description: "From date value with `YY-MM-DD` format",
        Type:        graphql.DateTime,
    },
    "toDate": &graphql.ArgumentConfig{
	Description: "To date value with `YY-MM-DD` format",
	Type:        graphql.DateTime,
    },
    "status": &graphql.ArgumentConfig{
        Description: "Current invoice status retrieved from transactions",
	Type:        invoiceTransactionStatusEnum,
    },
}),

The custom descriptions are not passed to GraphiQL.
For example, the type graphql.DateTime has its default description that is not overrided from my custom description. Indeed, they keep the default description:
The DateTime scalar type represents a DateTime. The DateTime is serialized as an RFC 3339 quoted string

Instead, the field status which is a custom enumeration, comes with No Description.

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

0 participants