Sha256: 601749119dddd55b1dad2e7b3ccba7c6a088be94fd8ac29da40183537f487aa4

Contents?: true

Size: 471 Bytes

Versions: 9

Compression:

Stored size: 471 Bytes

Contents

<% 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
<% if options[:relay] %>
    field :node, field: GraphQL::Relay::Node.field
<% end %>  end
end
<% end -%>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
graphql-1.11.12 lib/generators/graphql/templates/query_type.erb
graphql-1.11.11 lib/generators/graphql/templates/query_type.erb
graphql-1.11.10 lib/generators/graphql/templates/query_type.erb
graphql-1.11.9 lib/generators/graphql/templates/query_type.erb
graphql-1.11.8 lib/generators/graphql/templates/query_type.erb
graphql-1.11.7 lib/generators/graphql/templates/query_type.erb
graphql-1.11.6 lib/generators/graphql/templates/query_type.erb
graphql-1.11.5 lib/generators/graphql/templates/query_type.erb
graphql-1.11.4 lib/generators/graphql/templates/query_type.erb