Sha256: 5dcc77eec5e74f3d7534b243a172ecbd2d6be39f4f61dad46c7478e63aa98f77

Contents?: true

Size: 586 Bytes

Versions: 6

Compression:

Stored size: 586 Bytes

Contents

require "graphql"
require_relative "query_type"
require_relative "mutation_type"

module <%= config[:camel_cased_app_name] %>
  class Schema
    def self.call
      GraphQL::Schema.define do
        # This is your schema definition. The lines below have been commented
        # out because QueryType and MutationType are invalid until they have
        # fields. Uncomment them as soon as you add some fields to your types.
        #
        #query QueryType.new.call
        #mutation MutationType.new.call

        max_depth 10
        max_complexity 200
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kanji-web-0.3.1 lib/kanji/templates/app/schema.rb.tt
kanji-web-0.3.0 lib/kanji/templates/app/schema.rb.tt
kanji-web-0.2.2 lib/kanji/templates/app/schema.rb.tt
kanji-web-0.2.1 lib/kanji/templates/app/schema.rb.tt
kanji-web-0.2.0 lib/kanji/templates/app/schema.rb.tt
kanji-web-0.1.0 lib/kanji/templates/app/schema.rb.tt