我一直在尝试在Graphql中使用parent来解决问题。希望有人给我他们自己的理解以及所有解析器方法。我还阅读了[[docs。
class Person(ObjectType):
# First_name is a field with a resolver that fetches data in our schema
first_name = String()
last_name = String()
def resolve_full_name(parent, info):
return f"{parent.first_name} {parent.last_name}"