- Notifications
You must be signed in to change notification settings - Fork 181
Closed
Description
To reproduce:
- With python 2.7, create a new virtual environment.
pip install graphql-core- Create a file,
main.pywith the linefrom graphql import GraphQLEnumValue - Run the file, see error
ImportError: cannot import name GraphQLEnumValue
I was attempting this because comments in the library show examples like this one. Note the references to GraphQLEnumValue.
class GraphQLEnumType(GraphQLType): """Enum Type Definition Some leaf values of requests and input values are Enums. GraphQL serializes Enum values as strings, however internally Enums can be represented by any kind of type, often integers. Example: RGBType = GraphQLEnumType( name='RGB', values=OrderedDict([ ('RED', GraphQLEnumValue(0)), ('GREEN', GraphQLEnumValue(1)), ('BLUE', GraphQLEnumValue(2)) ]) ) Metadata
Metadata
Assignees
Labels
No labels