strawberry-django-plus icon indicating copy to clipboard operation
strawberry-django-plus copied to clipboard

Enhanced Strawberry GraphQL integration with Django

Results 37 strawberry-django-plus issues
Sort by recently updated
recently updated
newest added

When I try to run an update mutation with a List, I get this error: Cannot assign \"'1'\": \"Rating.goal\" must be a \"Goal\" instance." Here is the mutation: ``` mutation...

I'm seeing the above error when running a mutation. It's just this specific case where I see this, most basic mutations work fine. The model setup looks like this: ```...

Hello I tried to define a custom Connection class to extend it with the data I need. For this, the Node class was also redefined, and I encountered non-obvious behavior...

enhancement
help wanted

Hi there. Thanks for all the work you are putting into keeping GraphQL alive for django. I have run into the following issue. In order to be able to use...

enhancement

You should be able to detect that it's a union query and use prefetch_related instead of select_related. ``` File "/app/.heroku/python/lib/python3.10/site-packages/strawberry_django_plus/type.py", line 318, in lambda *args, **kwargs: resolve_connection( File "/app/.heroku/python/lib/python3.10/site-packages/strawberry_django_plus/utils/resolvers.py", line...

bug

Is it possible to have multiple mutations with the same name, under different parent types? For example: ```python @gql.type class Namespace1: @gql.django.mutation def mut(self) -> Res1: return Res1(1) @gql.type class...

enhancement
question

Currently it seems the query optimizer can only follow model relations when they are singular (i.e. a GraphQL field corresponds exactly to one ForeignKey or other model relation field). However...

enhancement
help wanted

The way `PermissionDenied` is handled is inconsistent, which makes it relatively ugly to handle on the frontend. For mutations it returns `OperationMessage`, but for fields the error is not handled...

question

Given a model: ``` @gql.django.input(Address) class AddressType: line1: str line2: str @gql.django.input(User) class UserType: first_name: gql.auto last_name: gql.auto address: Optional[AddressType] ``` **Current behavior:** Executing create (or update) mutation does not...

enhancement
help wanted

The issue flagged in this [ancient django-guardian issue](https://github.com/django-guardian/django-guardian/issues/366) is rearing its head with the permissions checking with this package. The `HasObjPerm` directive is generating SQL code which cannot be executed...

bug