We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99f0103 commit 74db349Copy full SHA for 74db349
docs/types/objecttypes.rst
@@ -80,6 +80,10 @@ If we have a schema with Person type and one field on the root query.
80
81
from graphene import ObjectType, String, Field
82
83
+ def get_human(name):
84
+ first_name, last_name = name.split()
85
+ return Person(first_name, last_name)
86
+
87
class Person(ObjectType):
88
full_name = String()
89
0 commit comments