From f97c7a001e37f5cd2efbd95a2f4a18d60c701940 Mon Sep 17 00:00:00 2001 From: kimbo Date: Mon, 13 Apr 2020 20:54:15 -0600 Subject: [PATCH] added graphene import to READMEs 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')