fix field name in execute.rst example (#1327)

fix field name in execute.rst 'Operation Name' example
This commit is contained in:
kevinr-electric 2021-04-22 23:28:05 -04:00 committed by GitHub
parent c08379ed85
commit 485b1ed325
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ If there are multiple operations defined in a query string, ``operation_name`` s
from graphene import ObjectType, Field, Schema from graphene import ObjectType, Field, Schema
class Query(ObjectType): class Query(ObjectType):
me = Field(User) user = Field(User)
def resolve_user(root, info): def resolve_user(root, info):
return get_user_by_id(12) return get_user_by_id(12)