yezyilomo / django-restql

Turn your API made with Django REST Framework(DRF) into a GraphQL like API.
https://yezyilomo.github.io/django-restql
MIT License
618 stars 43 forks source link

eager loading false not working #315

Open Ekuesky opened 8 months ago

Ekuesky commented 8 months ago

RESTQL = { 'AUTO_APPLY_EAGER_LOADING': False }

not working for me. everytime i send a get request, the renderer send me an eagerload response. how can i avoid it

yezyilomo commented 8 months ago

Thank you for reporting this but am not able to reproduce it on my end. Can you try setting auto_apply_eager_loading=False to one view and confirm if the behavior persist.

I'm also curious how do you determine if eager loading has run or not? are you comparing the number of queries executed before and after applying eager loading? cuz I believe that's the only way to know for sure if eager loading has been applied or not.