Skip to content

Commit efffcd1

Browse files
committed
Changed extension type to map and added link to GraphQL spec on extensions
1 parent eb11a23 commit efffcd1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

graphql_client/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,9 @@ pub struct Response<Data> {
290290
pub data: Option<Data>,
291291
/// The top-level errors returned by the server.
292292
pub errors: Option<Vec<Error>>,
293-
/// The top-level errors returned by the server.
294-
pub extensions: Option<serde_json::Value>,
293+
/// Additional extensions. Their exact format is defined by the server.
294+
/// See [GraphQL Response Specification](https://github.com/graphql/graphql-spec/blob/main/spec/Section%207%20--%20Response.md#response-format)
295+
pub extensions: Option<HashMap<String, serde_json::Value>>,
295296
}
296297

297298
#[cfg(test)]

0 commit comments

Comments
 (0)