Sha256: 0afd7082fb0869ad6efd92f72eb2091095a63b9153ac96b47f786d3d45912274

Contents?: true

Size: 416 Bytes

Versions: 61

Compression:

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

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
graphql-1.8.18 lib/generators/graphql/templates/query_type.erb
graphql-1.11.3 lib/generators/graphql/templates/query_type.erb
graphql-1.11.2 lib/generators/graphql/templates/query_type.erb
graphql-1.10.14 lib/generators/graphql/templates/query_type.erb
graphql-1.11.1 lib/generators/graphql/templates/query_type.erb
graphql-1.10.13 lib/generators/graphql/templates/query_type.erb
graphql-1.11.0 lib/generators/graphql/templates/query_type.erb
graphql-1.10.12 lib/generators/graphql/templates/query_type.erb
graphql-1.9.21 lib/generators/graphql/templates/query_type.erb
graphql-1.10.11 lib/generators/graphql/templates/query_type.erb
graphql-1.9.20 lib/generators/graphql/templates/query_type.erb
graphql-1.10.10 lib/generators/graphql/templates/query_type.erb
graphql-1.10.9 lib/generators/graphql/templates/query_type.erb
graphql-1.10.8 lib/generators/graphql/templates/query_type.erb
graphql-1.10.7 lib/generators/graphql/templates/query_type.erb
graphql-1.10.6 lib/generators/graphql/templates/query_type.erb
graphql-1.10.5 lib/generators/graphql/templates/query_type.erb
graphql-1.10.4 lib/generators/graphql/templates/query_type.erb
graphql-1.10.3 lib/generators/graphql/templates/query_type.erb
graphql-1.10.2 lib/generators/graphql/templates/query_type.erb