Sha256: 8ae73eaf3112652d6f77af39ed4121432567939380e9b9bd6358d4086c3a6b60

Contents?: true

Size: 1.65 KB

Versions: 2

Compression:

Stored size: 1.65 KB

Contents

require 'bundler/setup'
require 'json'
require 'graphql_schema'

require 'graphql_client/schema_patches.rb'
require 'graphql_client/error.rb'
require 'graphql_client/config.rb'
require 'graphql_client/adapters/http_adapter.rb'
require 'graphql_client/base.rb'
require 'graphql_client/query/has_selection_set.rb'
require 'graphql_client/query/add_inline_fragment.rb'
require 'graphql_client/query/selection_set.rb'
require 'graphql_client/query/fragment.rb'
require 'graphql_client/query/inline_fragment.rb'
require 'graphql_client/query/argument.rb'
require 'graphql_client/query/field.rb'
require 'graphql_client/query/query_document.rb'
require 'graphql_client/query/mutation_document.rb'
require 'graphql_client/query/document.rb'
require 'graphql_client/query/operation.rb'
require 'graphql_client/query/operations/query_operation.rb'
require 'graphql_client/query/operations/mutation_operation.rb'
require 'graphql_client/response.rb'
require 'graphql_client/deserialization.rb'
require 'graphql_client/response_object.rb'
require 'graphql_client/response_connection.rb'
require 'graphql_client/graph_object.rb'
require 'graphql_client/graph_connection.rb'
require 'graphql_client/graph_node.rb'
require 'graphql_client/introspection_query.rb'

module GraphQL
  module Client
    class << self
      def dump_schema(file, config: Config.new, adapter: nil)
        adapter ||= Adapters::HTTPAdapter.new(config)
        response = adapter.request(INTROSPECTION_QUERY)
        IO.write(file, JSON.pretty_generate(response.body))
      end

      def new(schema, config: nil, adapter: nil, &block)
        Base.new(schema, config: config, adapter: adapter, &block)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
graphql_client-0.4.1 lib/graphql_client.rb
graphql_client-0.3.3 lib/graphql_client.rb