You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run code cell 1 in example notebook, it complains about TypeError: Object of type QueryParameter is not JSON serializable.
Seems to me like when we have query with parameters, the QueryParameter pydantic model is not returned as json dict before GraphQLQuerier.post_graph_ql function happens.
Hence in httpx request, it is unable to encode parameters which is a list of QueryParameter objects rather than json text.
Screenshot
How to replicate the problem?
I use poetry to install based on pyproject.toml from this repo and simply run the example
Problem
TypeError: Object of type QueryParameter is not JSON serializable.QueryParameterpydantic model is not returned as json dict beforeGraphQLQuerier.post_graph_qlfunction happens.QueryParameterobjects rather than json text.Screenshot
How to replicate the problem?
Potential solutions
GraphQLQuerier.post_graph_qlfunction before calling the api