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

I have the following a model with the following field: ``` class Invitation(models.Model): ... department = models.ForeignKey( Department, null=True, on_delete=models.CASCADE, related_name="invitee_department", ) ``` And I am trying to write a...

Given: ```python # from strawberry_django import field as django_field # from strawberry_django import type as django_type from strawberry_django_plus.gql.django import field as django_field from strawberry_django_plus.gql.django import type as django_type class UrnFieldMixin:...

Hi there, Instead of applying the `IsAuthenticated()` directive to individual fields, I'm looking to apply this to an entire schema. I'd wondered if this might work, but it doesn't: ```python...

When trying to use `select_related` on a field, I am getting an error when the `DjangoOptimizerExtension` is used with its default `enable_only_optimization=True`. This happens because `only()` is used with "id",...

enhancement

A field that represents a model property will not be handled by the query optimizer: https://github.com/blb-ventures/strawberry-django-plus/blob/9a54dd0378b31302b99754704ccd9f1025f43fbd/strawberry_django_plus/optimizer.py#L163-L166 It could get derived from the type hint though, couldn't it? Specifying `field_name`, which...

enhancement
help wanted

Hello! So, I have a Django model, `Invoice`, which let's say has two fields, `id` and `amount`, a float. ``` class Invoice(models.Model): id = models.PrimaryKey(...) @property def amount(self) -> float:...

I’m having this error (from `django.db`) with my actual schema for some queries, but only if the `DjangoOptimizerExtension` is in place. I narrowed down my project to a minimum reproducible...

HI @bellini666 I had question about using **CUD** mutations in a non-relay context. It seems like **gql.django.update_mutation** takes Relay- specific **Type[NodeInput]**.. Since i am not using Relay, is it possible...

question

Hi, I just started a private project using django with strawberry-django-plus. I would like to use [django-translated-fields](https://github.com/matthiask/django-translated-fields/) for translation of some fields in this project. The reason why I want...

First of all: thank you very much for this library! I have a question regarding how to properly validate an enum. This is my model: ``` class Lemma(models.Model): id =...