Sha256: 0f6bd3e913f734f481b82b45c05bf304e6da817cc842804f6325b330f2be3227

Contents?: true

Size: 384 Bytes

Versions: 5

Compression:

Stored size: 384 Bytes

Contents

class Types::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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
graphql-1.8.6 lib/generators/graphql/templates/query_type.erb
graphql-1.8.5 lib/generators/graphql/templates/query_type.erb
graphql-1.8.4 lib/generators/graphql/templates/query_type.erb
graphql-1.8.3 lib/generators/graphql/templates/query_type.erb
graphql-1.8.2 lib/generators/graphql/templates/query_type.erb