StellateHQ / stellate-strawberry

3 stars 1 forks source link

Fix how errors are serialized to json #8

Closed patrick91 closed 5 months ago

patrick91 commented 5 months ago

This PR changes how the result json is created by using strawberry's process_result function.

This fixes an issue where you'd get a serialization error when trying to serialize an error.

I've also added some basic tests. We should probably write more (and test the HTTP call too)

I'll add a basic workflow to run the tests later :)