Sha256: 49c2df8d69f8a1775fcd39c9c9a299ade5e5ec221d1b5f5216dd58c18d6fe0d2
Contents?: true
Size: 368 Bytes
Versions: 32
Compression:
Stored size: 368 Bytes
Contents
# frozen_string_literal: true module GraphQL module Introspection TypeByNameField = GraphQL::Field.define do name("__type") description("A type in the GraphQL system") type(GraphQL::Introspection::TypeType) argument :name, !types.String resolve ->(o, args, ctx) { ctx.warden.get_type(args["name"]) } end end end
Version data entries
32 entries across 32 versions & 1 rubygems