Sha256: 9b7fa1529f4932b359b49d21228cdbe93c8a17b7916e0a1fa3e68dede22c7be0
Contents?: true
Size: 607 Bytes
Versions: 8
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true module GraphQL class Schema module TypeExpression def self.build_type(types, ast_node) case ast_node when GraphQL::Language::Nodes::TypeName type_name = ast_node.name types[type_name] when GraphQL::Language::Nodes::NonNullType ast_inner_type = ast_node.of_type build_type(types, ast_inner_type).to_non_null_type when GraphQL::Language::Nodes::ListType ast_inner_type = ast_node.of_type build_type(types, ast_inner_type).to_list_type end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems