diff --git a/graphql_client/src/lib.rs b/graphql_client/src/lib.rs index 17f1e170..c78548c4 100644 --- a/graphql_client/src/lib.rs +++ b/graphql_client/src/lib.rs @@ -181,6 +181,7 @@ impl Display for PathFragment { /// extensions: None, /// }, /// ]), +/// extensions: None, /// }; /// /// assert_eq!(body, expected); @@ -275,6 +276,7 @@ impl Display for Error { /// dogs: vec![Dog { name: "Strelka".to_owned() }], /// }), /// errors: Some(vec![]), +/// extensions: None, /// }; /// /// assert_eq!(body, expected); @@ -288,6 +290,9 @@ pub struct Response { pub data: Option, /// The top-level errors returned by the server. pub errors: Option>, + /// Additional extensions. Their exact format is defined by the server. + /// See [GraphQL Response Specification](https://github.com/graphql/graphql-spec/blob/main/spec/Section%207%20--%20Response.md#response-format) + pub extensions: Option>, } #[cfg(test)]