Sha256: a29256a9c39f2c1773fb539679d36ed031ad4ff5cf3f1ad8fff3a63b1ebf7698

Contents?: true

Size: 587 Bytes

Versions: 34

Compression:

Stored size: 587 Bytes

Contents

module GraphQL
  class Schema
    module TypeExpression
      def self.build_type(schema, ast_node)
        case ast_node
        when GraphQL::Language::Nodes::TypeName
          type_name = ast_node.name
          schema.types[type_name]
        when GraphQL::Language::Nodes::NonNullType
          ast_inner_type = ast_node.of_type
          build_type(schema, ast_inner_type).to_non_null_type
        when GraphQL::Language::Nodes::ListType
          ast_inner_type = ast_node.of_type
          build_type(schema, ast_inner_type).to_list_type
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
graphql-1.0.0 lib/graphql/schema/type_expression.rb
graphql-0.19.4 lib/graphql/schema/type_expression.rb
graphql-0.19.3 lib/graphql/schema/type_expression.rb
graphql-0.19.2 lib/graphql/schema/type_expression.rb
graphql-0.19.1 lib/graphql/schema/type_expression.rb
graphql-0.19.0 lib/graphql/schema/type_expression.rb
graphql-0.18.15 lib/graphql/schema/type_expression.rb
graphql-0.18.14 lib/graphql/schema/type_expression.rb
graphql-0.18.13 lib/graphql/schema/type_expression.rb
graphql-0.18.12 lib/graphql/schema/type_expression.rb
graphql-0.18.11 lib/graphql/schema/type_expression.rb
graphql-0.18.10 lib/graphql/schema/type_expression.rb
graphql-0.18.9 lib/graphql/schema/type_expression.rb
graphql-0.18.8 lib/graphql/schema/type_expression.rb
graphql-0.18.7 lib/graphql/schema/type_expression.rb
graphql-0.18.6 lib/graphql/schema/type_expression.rb
graphql-0.18.5 lib/graphql/schema/type_expression.rb
graphql-0.18.4 lib/graphql/schema/type_expression.rb
graphql-0.18.3 lib/graphql/schema/type_expression.rb
graphql-0.18.2 lib/graphql/schema/type_expression.rb