【发布时间】:2023-03-22 06:42:01
【问题描述】:
这是代码 sn -p 我希望访问 Product 类中的 instanceName 属性
class Product(graphene.ObjectType):
productName=graphene.String()
productDependecies=graphene.List(ProductDependency)
'''
I wish to access the instanceName here in this class How Can I do it
'''
class Instance(graphene.ObjectType):
instanceName=graphene.String()
products=graphene.List(Product)
def resolve_products(self,info):
#some code that follows
【问题讨论】: