-
Notifications
You must be signed in to change notification settings - Fork 819
Closed
Description
According to the GraphQL specification, it should be possible to set the description of individual enum values:
class GraphQLEnumType {
constructor(config: GraphQLEnumTypeConfig)
}
type GraphQLEnumTypeConfig = {
name: string;
values: GraphQLEnumValueConfigMap;
description?: ?string;
}
type GraphQLEnumValueConfigMap = {
[valueName: string]: GraphQLEnumValueConfig;
};
type GraphQLEnumValueConfig = {
value?: any;
deprecationReason?: string;
description?: ?string;
}
type GraphQLEnumValueDefinition = {
name: string;
value?: any;
deprecationReason?: string;
description?: ?string;
}Seemingly, this has not been implemented in Graphene.
In my system, I have predefined constants with associated descriptions. I'd like these descriptions to be in my documentation.
Metadata
Metadata
Assignees
Labels
No labels