Hello! I have this example and it fails after updating to newer version of strawberry.
Cannot reference Input Object 'LicenseFilter' within itself through a series of non-null fields: 'school.license'
@strawberry.django.filters.filter(models.License, lookups=True)
class LicenseFilter:
id: str
school: "SchoolFilter"
...
@strawberry.django.filters.filter(models.School, lookups=True)
class SchoolFilter:
id: str
license: "LicenseFilter"
...
If I put strawberry.LazyType[] around SchoolFilter and LicenseFilter, I still get the same error. Does lazy load works here in filters?
I tried this:
@strawberry.django.filters.filter(models.School, lookups=True)
class SchoolFilter:
id: str
license: strawberry.LazyType["LicenseFilter", "clients.api_v2.graphql.types"]
Thank you!
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too