Sha256: 7c3625a5dc67ee560c5a7f02071cd22991e7dd9709bba074a1a1715ec303caef
Contents?: true
Size: 1.31 KB
Versions: 46
Compression:
Stored size: 1.31 KB
Contents
# frozen_string_literal: true GraphQL::Introspection::TypeType = GraphQL::ObjectType.define do name "__Type" description "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in "\ "GraphQL as represented by the `__TypeKind` enum.\n\n"\ "Depending on the kind of a type, certain fields describe information about that type. "\ "Scalar types provide no information beyond a name and description, while "\ "Enum types provide their values. Object and Interface types provide the fields "\ "they describe. Abstract types, Union and Interface, provide the Object types "\ "possible at runtime. List and NonNull types compose other types." field :kind do type !GraphQL::Introspection::TypeKindEnum resolve ->(target, a, c) { target.kind.name } end field :name, types.String field :description, types.String field :fields, GraphQL::Introspection::FieldsField field :interfaces, GraphQL::Introspection::InterfacesField field :possibleTypes, GraphQL::Introspection::PossibleTypesField field :enumValues, GraphQL::Introspection::EnumValuesField field :inputFields, GraphQL::Introspection::InputFieldsField field :ofType, GraphQL::Introspection::OfTypeField introspection true end
Version data entries
46 entries across 46 versions & 1 rubygems