Skip to content

Commit 5b78517

Browse files
committed
Merge remote-tracking branch 'upstream/master' into drf-serializer-update
2 parents e2ac311 + c63dbea commit 5b78517

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class User(DjangoObjectType):
6767
class Query(graphene.ObjectType):
6868
users = graphene.List(User)
6969

70-
def resolve_users(self):
70+
def resolve_users(self, info):
7171
return UserModel.objects.all()
7272

7373
schema = graphene.Schema(query=Query)

docs/tutorial-plain.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Create ``cookbook/ingredients/schema.py`` and type the following:
153153
model = Ingredient
154154
155155
156-
class Query(graphene.AbstractType):
156+
class Query(object):
157157
all_categories = graphene.List(CategoryType)
158158
all_ingredients = graphene.List(IngredientType)
159159
@@ -426,7 +426,7 @@ We can update our schema to support that, by adding new query for ``ingredient``
426426
model = Ingredient
427427
428428
429-
class Query(graphene.AbstractType):
429+
class Query(object):
430430
category = graphene.Field(CategoryType,
431431
id=graphene.Int(),
432432
name=graphene.String())

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
install_requires=[
5959
'six>=1.10.0',
60-
'graphene>=2.0',
60+
'graphene>=2.0,<3',
6161
'Django>=1.8.0',
6262
'iso8601',
6363
'singledispatch>=3.4.0.3',

0 commit comments

Comments
 (0)