Sha256: ee0599bf9fe571b8058ff482a54caa4802ffbeeab8cb520ad2f946734cc5180d

Contents?: true

Size: 415 Bytes

Versions: 51

Compression:

Stored size: 415 Bytes

Contents

Types::QueryType = GraphQL::ObjectType.define do
  name "Query"
  # Add root-level fields here.
  # They will be entry points for queries on your schema.

  # TODO: remove me
  field :testField, types.String do
    description "An example field added by the generator"
    resolve ->(obj, args, ctx) {
      "Hello World!"
    }
  end
<% if options[:relay] %>
  field :node, GraphQL::Relay::Node.field
<% end %>end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
graphql-1.8.1 lib/generators/graphql/templates/query_type.erb
graphql-1.8.0 lib/generators/graphql/templates/query_type.erb
graphql-1.8.0.pre11 lib/generators/graphql/templates/query_type.erb
graphql-1.8.0.pre10 lib/generators/graphql/templates/query_type.erb
graphql-1.7.14 lib/generators/graphql/templates/query_type.erb
graphql-1.8.0.pre9 lib/generators/graphql/templates/query_type.erb
graphql-1.8.0.pre8 lib/generators/graphql/templates/query_type.erb
graphql-1.7.13 lib/generators/graphql/templates/query_type.erb
graphql-1.8.0.pre7 lib/generators/graphql/templates/query_type.erb
graphql-1.7.12 lib/generators/graphql/templates/query_type.erb
graphql-1.7.11 lib/generators/graphql/templates/query_type.erb
graphql-1.7.10 lib/generators/graphql/templates/query_type.erb
graphql-1.8.0.pre6 lib/generators/graphql/templates/query_type.erb
graphql-1.8.0.pre5 lib/generators/graphql/templates/query_type.erb
graphql-1.7.9 lib/generators/graphql/templates/query_type.erb
graphql-1.8.0.pre4 lib/generators/graphql/templates/query_type.erb
graphql-1.8.0.pre3 lib/generators/graphql/templates/query_type.erb
graphql-1.7.8 lib/generators/graphql/templates/query_type.erb
graphql-1.8.0.pre2 lib/generators/graphql/templates/query_type.erb
graphql-1.7.7 lib/generators/graphql/templates/query_type.erb