Essentially I had this issue recently:
Defined type like this:
@strawberry.django.type(Client)
class ClientType:
name = auto
email = auto
phone_number = auto
organization = auto
And I got error back like this:
| β Type ClientType must define one or more fields.
Original Issue on other repository: strawberry-graphql/strawberry-django#242
Not rally useful error, as I know for sure I have defined all the fields on my ClientType
sepcifically.
And I could not figure our why this is happening for about 2 hours, until I wen't to Discord had someone looking at my code.
It turns out that I used =
where in fact it should be :
Here is a scree of full traceback:
I think it would be nice if we can detect these mistypings and give a better suggestion to developer of how to fix it.
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