lib/graphql-docs/client.rb in graphql-docs-0.1.1 vs lib/graphql-docs/client.rb in graphql-docs-0.2.0

- old
+ new

@@ -28,13 +28,14 @@ @faraday.authorization('token', @access_token) end end def fetch - @faraday.post do |req| + res = @faraday.post do |req| req.headers['Content-Type'] = 'application/json' req.body = "{ \"query\": \"#{GraphQL::Introspection::INTROSPECTION_QUERY.gsub("\n", '')}\" }" end + res.body end def inspect inspected = super