Sha256: 14c9b42dd48bac0697a24db78d9a59e0f4c5df8a38962ea32a93bffbb2ab6577
Contents?: true
Size: 784 Bytes
Versions: 19
Compression:
Stored size: 784 Bytes
Contents
# frozen_string_literal: true module GraphQL module Types module Relay # Don't use this field directly, instead, use one of these approaches: # # @example Adding this field directly # include GraphQL::Types::Relay::HasNodeField # # @example Implementing a similar field in your own Query root # # field :node, GraphQL::Types::Relay::Node, null: true, # description: "Fetches an object given its ID" do # argument :id, ID, required: true # end # # def node(id:) # context.schema.object_from_id(id, context) # end # DeprecatedNodeField = GraphQL::Schema::Field.new(owner: nil, **HasNodeField.field_options, &HasNodeField.field_block) end end end
Version data entries
19 entries across 19 versions & 1 rubygems