Thiago Bellini Ribeiro

Results 346 comments of Thiago Bellini Ribeiro

Hi @sanginovs , The main issue here is that the `update_mutation` expects an id/pk to find the model you are trying to update. Usually django will have a `pk` attr...

@Mapiarz I believe that [this functionality](https://github.com/strawberry-graphql/strawberry/releases/tag/0.162.0) that got merged on strawberry some days ago is thr way to go. I'll actually rewrite the permissioning to use it when [porting it...

Hrm, that's strange because django always provide a `pk` attribute for the chosen primary key, which is a way to access it in a generic way without knowing which attr...

Oh, sure! Will do that right now :)

@sanginovs for curiosity, does your model not have a primary key? Because django will always create a `pk` field that is an alias to the field that is the primary...

Hey @he0119 , I don't think we are considering this corner case yet... I might try to take a look at that in the future. In the mean time you...

Hey @zacatac , The fix seems fine, the only issue I see with it is that the `object_pk` might not be an integer. For example, some people use `UUIDField` for...

Hey @m4riok . When I wrote the permissions directives the websockets support was not done yet in strawberry. This should be easily solved by checking the type of the context...

Hi @diesieben07 , For curiosity, why `select_related` together with `only` doesn't work for you in this case? Even if the field is null it is not an error to add...

> > so, just a FYI, I'm planning on doing a change in the future to deprecate select_related/prefetch_related/only and have just a optimize_hints (or some better name) in which someone...