Skip to content

Commit eb11a23

Browse files
committed
Added extension support
1 parent d309661 commit eb11a23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graphql_client/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ impl Display for PathFragment {
181181
/// extensions: None,
182182
/// },
183183
/// ]),
184+
/// extensions: None,
184185
/// };
185186
///
186187
/// assert_eq!(body, expected);
@@ -275,6 +276,7 @@ impl Display for Error {
275276
/// dogs: vec![Dog { name: "Strelka".to_owned() }],
276277
/// }),
277278
/// errors: Some(vec![]),
279+
/// extensions: None,
278280
/// };
279281
///
280282
/// assert_eq!(body, expected);
@@ -288,6 +290,8 @@ pub struct Response<Data> {
288290
pub data: Option<Data>,
289291
/// The top-level errors returned by the server.
290292
pub errors: Option<Vec<Error>>,
293+
/// The top-level errors returned by the server.
294+
pub extensions: Option<serde_json::Value>,
291295
}
292296

293297
#[cfg(test)]

0 commit comments

Comments
 (0)