Skip to content

Added extension support #399

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

Merged
merged 2 commits into from
Dec 4, 2021
Merged

Conversation

pruthvikar
Copy link
Contributor

Added support for extensions as a serde_json::Value. This can be further converted into a concrete type with the use of serde_json::from_value.

Related: #367

Copy link
Member

@tomhoule tomhoule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Just one nitpick.

@@ -288,6 +290,8 @@ pub struct Response<Data> {
pub data: Option<Data>,
/// The top-level errors returned by the server.
pub errors: Option<Vec<Error>>,
/// The top-level errors returned by the server.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc string should probably say something else. Ideally a short explanation with a link to the spec.

@tomhoule tomhoule merged commit fd5dc3d into graphql-rust:main Dec 4, 2021
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.

2 participants