Sha256: d1cef5f95e4aa6f2530cf55ead30b34b5705f7089574dd2c5e77562b787d5ad5

Contents?: true

Size: 1.65 KB

Versions: 5

Compression:

Stored size: 1.65 KB

Contents

require "json"
require "set"
require "singleton"

module GraphQL
  class Error < StandardError
  end

  class ParseError < Error
    attr_reader :line, :col, :query
    def initialize(message, line, col, query)
      super(message)
      @line = line
      @col = col
      @query = query
    end
  end

  # Turn a query string into an AST
  # @param query_string [String] a GraphQL query string
  # @return [GraphQL::Language::Nodes::Document]
  def self.parse(query_string)
    parse_with_racc(query_string)
  end

  def self.parse_with_racc(string)
    GraphQL::Language::Parser.parse(string)
  end
end

# Order matters for these:

require "graphql/execution_error"
require "graphql/define"
require "graphql/base_type"
require "graphql/object_type"

require "graphql/enum_type"
require "graphql/input_object_type"
require "graphql/interface_type"
require "graphql/list_type"
require "graphql/non_null_type"
require "graphql/union_type"

require "graphql/argument"
require "graphql/field"
require "graphql/type_kinds"

require "graphql/scalar_type"
require "graphql/boolean_type"
require "graphql/float_type"
require "graphql/id_type"
require "graphql/int_type"
require "graphql/string_type"
require "graphql/directive"

require "graphql/introspection"
require "graphql/language"
require "graphql/analysis"
require "graphql/schema"
require "graphql/schema/loader"
require "graphql/schema/printer"

# Order does not matter for these:

require "graphql/analysis_error"
require "graphql/invalid_null_error"
require "graphql/query"
require "graphql/internal_representation"
require "graphql/static_validation"
require "graphql/version"
require "graphql/relay"
require "graphql/execution"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
graphql-0.18.10 lib/graphql.rb
graphql-0.18.9 lib/graphql.rb
graphql-0.18.8 lib/graphql.rb
graphql-0.18.7 lib/graphql.rb
graphql-0.18.6 lib/graphql.rb