Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove GraphqlClient trait #58

Merged
merged 2 commits into from
Jan 19, 2024
Merged

Remove GraphqlClient trait #58

merged 2 commits into from
Jan 19, 2024

Conversation

obmarg
Copy link
Owner

@obmarg obmarg commented Jan 19, 2024

I've been working with graphql-ws-client recently and I'm not that happy with it's API. This is the first in a series of refactors to simplify it a bunch.

First on the chopping block: the GraphqlClient trait. There wasn't a ton of point to this - it lets client implementations avoid temporarily deserializing errors into serde_json::Value but generally the response data still has to go through this. I suppose it'd also let clients use something other than serde_json but in practice I'm not sure how useful this is.

Removing this simplifies the API a bunch, so I think it's worthwhile.

@obmarg obmarg mentioned this pull request Jan 19, 2024
25 tasks
@obmarg obmarg merged commit c61a371 into main Jan 19, 2024
2 checks passed
@obmarg obmarg deleted the obmarg/push-lzuqnulozsou branch January 19, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant