Hey there,
We override the get_queryset method of one of our types, yet that doesn't seem to be respected. Specifically, when I debug through the code, that seems to happen in resolve_base_manager where the _prefetched_objects_cache just contains the full queryset.
Hey there, We override the get_queryset method of one of our types, yet that doesn't seem to be respected. Specifically, when I debug through the code, that seems to happen in resolve_base_manager where the _prefetched_objects_cache just contains the full queryset.
Describe the Bug
Here is an example:
Using the code above, I just get all users returned and using the debugger, the get_queryset part is never actually run.
We could use a custom resolver on the DepartmentType, but we would actually like to apply that filtering everywhere and not repeat the resolver.
System Information
strawberry-graphql[cli]==0.235.0 strawberry-graphql-django==0.44.2
Additional Context
prefetch_custom_queryset
, the intended behavior is restoredUpvote & Fund