Sha256: c544ed001558353ee2f68dfbd698d6aa54f168302972ef950ca960df7bb0809e

Contents?: true

Size: 417 Bytes

Versions: 53

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

<% module_namespacing_when_supported do -%>
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
  end
end
<% end -%>

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
graphql-2.4.4 lib/generators/graphql/templates/query_type.erb
graphql-2.4.3 lib/generators/graphql/templates/query_type.erb
graphql-2.4.2 lib/generators/graphql/templates/query_type.erb
graphql-2.4.1 lib/generators/graphql/templates/query_type.erb
graphql-2.4.0 lib/generators/graphql/templates/query_type.erb
graphql-2.3.20 lib/generators/graphql/templates/query_type.erb
graphql-2.3.19 lib/generators/graphql/templates/query_type.erb
graphql-2.3.18 lib/generators/graphql/templates/query_type.erb
graphql-2.3.17 lib/generators/graphql/templates/query_type.erb
graphql-2.3.16 lib/generators/graphql/templates/query_type.erb
graphql-2.3.15 lib/generators/graphql/templates/query_type.erb
graphql-2.3.14 lib/generators/graphql/templates/query_type.erb
graphql-2.3.13 lib/generators/graphql/templates/query_type.erb
graphql-2.3.12 lib/generators/graphql/templates/query_type.erb
graphql-2.3.11 lib/generators/graphql/templates/query_type.erb
graphql-2.3.10 lib/generators/graphql/templates/query_type.erb
graphql-2.2.16 lib/generators/graphql/templates/query_type.erb
graphql-2.1.13 lib/generators/graphql/templates/query_type.erb
graphql-2.3.9 lib/generators/graphql/templates/query_type.erb
graphql-2.3.8 lib/generators/graphql/templates/query_type.erb