I want both of the following queries to return either profiles or a permission error. It works as expected for the profile field, but it doesn't work for the second field, all_profiles:
File "<...>/python3.11/site-packages/strawberry_django_plus/relay.py", line 1001, in get_result
type_def = info.return_type._type_definition # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StrawberryUnion' object has no attribute '_type_definition'
I want both of the following queries to return either profiles or a permission error. It works as expected for the
profile
field, but it doesn't work for the second field,all_profiles
:Query:
Response:
Error: