jkimbo / graphql-sync-dataloaders

Use DataLoaders in your Python GraphQL servers that have to run in a sync context (i.e. Django).
MIT License
41 stars 21 forks source link

Results not cleared across API calls #18

Open MichaelKim0407 opened 1 year ago

MichaelKim0407 commented 1 year ago

This might be a stupid question, but since the loader is a global variable, does it keep the values cross multiple API calls?

I'm only seeing database queries after the first time I start the server; afterwards no db queries are made and all values remain the same even after I modify the db records.

I'm using Django 4.2.

Django==4.2.3
graphene==3.2.2
graphene-django==3.1.2
graphql-core==3.2.3
graphql-relay==3.2.0
graphql-sync-dataloaders==0.1.1