Sha256: 9bee4fb19e0860b99c4cf9bc2c5bbbdf18fb32000ec55b4749d065719af56331

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

# frozen_string_literal: true

class GraphQLSchema
  def query_root
    type(query_root_name)
  end

  def type(name)
    types_by_name.fetch(name)
  end

  class TypeDefinition
    def field(name)
      fields_by_name.fetch(name)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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