Sha256: b1f27531d578491f3c78dad59ccf16add242eb99e04683b33a7185a9facb41db

Contents?: true

Size: 383 Bytes

Versions: 4

Compression:

Stored size: 383 Bytes

Contents

module Types
  class QueryType < Types::BaseObject
    # Add root-level fields here.
    # They will be entry points for queries on your schema.

    # TODO: remove me
    field :test_field, String, null: false,
      description: "An example field added by the generator"
    def test_field
      "Hello World!"
    end

    field :node, field: GraphQL::Relay::Node.field
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
graphql-1.9.0.pre3 spec/integration/tmp/dummy/app/graphql/types/query_type.rb
graphql-1.9.0.pre2 spec/integration/tmp/dummy/app/graphql/types/query_type.rb
graphql-1.8.13 spec/integration/tmp/dummy/app/graphql/types/query_type.rb
graphql-1.8.12 spec/integration/tmp/dummy/app/graphql/types/query_type.rb