jaydenwindle / graphene-subscriptions

A plug-and-play GraphQL subscription implementation for Graphene + Django built using Django Channels.
MIT License
115 stars 15 forks source link

Dataloaders in a subscription payload #34

Open Zagrebelin opened 3 years ago

Zagrebelin commented 3 years ago

I have a set of dataloaders described here https://docs.graphene-python.org/en/latest/execution/dataloader/. When I subscribe to objectType without dataloaders fields, everything works fine. When I subscribe to objectType with dataloaders field, I got an TypeError: Object of type Promise is not JSON serializable here

How can i solve this issue?

millar commented 3 years ago

I have an open PR to address this: https://github.com/jaydenwindle/graphene-subscriptions/pull/26