Sha256: c3f8fbc1bf83f1de4a8ff0f6b685d20a0a8c612e1cf2b35f10190b1dbca9ceee

Contents?: true

Size: 468 Bytes

Versions: 56

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

module GraphQL
  module Types
    module Relay
      # This can be used for Relay's `Node` interface,
      # or you can take it as inspiration for your own implementation
      # of the `Node` interface.
      module Node
        include Types::Relay::BaseInterface
        default_relay(true)
        description "An object with an ID."
        field(:id, ID, null: false, description: "ID of the object.")
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
graphql-1.11.10 lib/graphql/types/relay/node.rb
graphql-1.11.9 lib/graphql/types/relay/node.rb
graphql-1.11.8 lib/graphql/types/relay/node.rb
graphql-1.11.7 lib/graphql/types/relay/node.rb
graphql-1.11.6 lib/graphql/types/relay/node.rb
graphql-1.11.5 lib/graphql/types/relay/node.rb
graphql-1.11.4 lib/graphql/types/relay/node.rb
graphql-1.11.3 lib/graphql/types/relay/node.rb
graphql-1.11.2 lib/graphql/types/relay/node.rb
graphql-1.10.14 lib/graphql/types/relay/node.rb
graphql-1.11.1 lib/graphql/types/relay/node.rb
graphql-1.10.13 lib/graphql/types/relay/node.rb
graphql-1.11.0 lib/graphql/types/relay/node.rb
graphql-1.10.12 lib/graphql/types/relay/node.rb
graphql-1.9.21 lib/graphql/types/relay/node.rb
graphql-1.10.11 lib/graphql/types/relay/node.rb
graphql-1.9.20 lib/graphql/types/relay/node.rb
graphql-1.10.10 lib/graphql/types/relay/node.rb
graphql-1.10.9 lib/graphql/types/relay/node.rb
graphql-1.10.8 lib/graphql/types/relay/node.rb