blb-ventures / strawberry-django-plus

Enhanced Strawberry GraphQL integration with Django
MIT License
179 stars 47 forks source link

NodeExtension broken with Strawberry #246

Closed djstein closed 1 year ago

djstein commented 1 year ago

when making single item Relay based Node calls that use of gql.django.node in queries such as:

@strawberry.type
class Query:
    item: Item = gql.django.node()

The use of the NodeExtension at https://github.com/blb-ventures/strawberry-django-plus/blob/main/strawberry_django_plus/field.py#L637 results in the following related error https://github.com/strawberry-graphql/strawberry/issues/2862

bellini666 commented 1 year ago

Hey @djstein ,

Thanks for pointing it out!

This PR should fix the issue for both strawberry and for this lib as well. Since the issue is already opened there, and the fix is on strawberry's side, I'll close this. But feel free to reopen it if required :)