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.0.pre1 lib/generators/graphql/templates/query_type.erb
graphql-1.7.6 lib/generators/graphql/templates/query_type.erb
graphql-1.7.5 lib/generators/graphql/templates/query_type.erb
graphql-1.7.4 lib/generators/graphql/templates/query_type.erb
graphql-1.7.3 lib/generators/graphql/templates/query_type.erb
graphql-1.7.2 lib/generators/graphql/templates/query_type.erb
graphql-1.7.1 lib/generators/graphql/templates/query_type.erb
graphql-1.7.0 lib/generators/graphql/templates/query_type.erb
graphql-1.6.8 lib/generators/graphql/templates/query_type.erb
graphql-1.6.7 lib/generators/graphql/templates/query_type.erb
graphql-1.6.6 lib/generators/graphql/templates/query_type.erb
graphql-1.6.5 lib/generators/graphql/templates/query_type.erb
graphql-1.6.4 lib/generators/graphql/templates/query_type.erb
graphql-1.5.15 lib/generators/graphql/templates/query_type.erb
graphql-1.6.3 lib/generators/graphql/templates/query_type.erb
graphql-1.6.2 lib/generators/graphql/templates/query_type.erb
graphql-1.6.1 lib/generators/graphql/templates/query_type.erb
graphql-1.6.0 lib/generators/graphql/templates/query_type.erb
graphql-1.5.14 lib/generators/graphql/templates/query_type.erb
graphql-1.5.13 lib/generators/graphql/templates/query_type.erb