Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions graphql_client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl Display for PathFragment {
/// extensions: None,
/// },
/// ]),
/// extensions: None,
/// };
///
/// assert_eq!(body, expected);
Expand Down Expand Up @@ -275,6 +276,7 @@ impl Display for Error {
/// dogs: vec![Dog { name: "Strelka".to_owned() }],
/// }),
/// errors: Some(vec![]),
/// extensions: None,
/// };
///
/// assert_eq!(body, expected);
Expand All @@ -288,6 +290,9 @@ pub struct Response<Data> {
pub data: Option<Data>,
/// The top-level errors returned by the server.
pub errors: Option<Vec<Error>>,
/// 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<HashMap<String, serde_json::Value>>,
}

#[cfg(test)]
Expand Down