[Fixed]-Circular Referencing Packages – Python/Django

1👍

Figured out a way to work around this issue. In contact.py I lazy loaded the CompanyInput using a lambda as follows:

import graphene

import graphql.inputs.company


class ContactInput(graphene.InputObjectType):
    company = graphene.Field(lambda: graphql.inputs.company.CompanyInput)

Leave a comment