strawberry-graphql / strawberry-django

Strawberry GraphQL Django extension
https://strawberry.rocks/docs/django
MIT License
415 stars 120 forks source link

Field annotation auto breaks when upgrading to Strawberry 0.139.0 #205

Closed ekalvi closed 2 years ago

ekalvi commented 2 years ago

Describe the Bug

After upgrading to Strawberry 0.139.0 any strawberry.django.type classes that use the auto type will fail with error. See the recent release: https://github.com/strawberry-graphql/strawberry/releases/tag/0.139.0

Example

strawberry-graphql==0.139.0
strawberry-graphql-django==0.7.1
@strawberry.django.type(models.Service)
class Service:
    id: auto
TypeError: Service fields cannot be resolved. Unexpected type 'auto'

System Information

Additional Context

The Strawberry 0.139.0 release just went out Nov 4 @ 11am ET. It is very new.

Upvote & Fund

Fund with Polar

patrick91 commented 2 years ago

@ekalvi thanks for the report! I'll take a look!