README.md in graphql_client-0.3.3 vs README.md in graphql_client-0.4.1
- old
+ new
@@ -92,5 +92,19 @@
}
')
puts response.shop.name
```
+
+### Extensions
+
+The GraphQL specification allows for an [`extensions` key](http://facebook.github.io/graphql/October2016/#sec-Response-Format) in the response. To access this data use the `raw_query_with_extensions` method instead. It will return a tuple of response objects, one for the `data` key and one for the `extensions` key.
+
+```ruby
+data, extensions = client.raw_query_with_extensions('
+ query {
+ shop {
+ name
+ }
+ }
+')
+```