From 7a1e9d7798f6ce2c7742799ed83cba2b24e03afa Mon Sep 17 00:00:00 2001 From: Kimball Leavitt Date: Tue, 14 Apr 2020 03:25:10 -0600 Subject: [PATCH] added graphene import to READMEs (#1183) it's nice to just be able to copy/paste the entire example without having to remember the import --- README.md | 2 ++ README.rst | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index e7bc5a60..85849a3d 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ pip install "graphene>=2.0" Here is one example for you to get started: ```python +import graphene + class Query(graphene.ObjectType): hello = graphene.String(description='A typical hello world') diff --git a/README.rst b/README.rst index bb8fecb2..243215e4 100644 --- a/README.rst +++ b/README.rst @@ -67,6 +67,8 @@ Here is one example for you to get started: .. code:: python + import graphene + class Query(graphene.ObjectType): hello = graphene.String(description='A typical hello world')