Sha256: 8be50c6a00d5a9c70f9128e63f6f930e045ba325b78d64af3606a4ea95a15985

Contents?: true

Size: 306 Bytes

Versions: 6

Compression:

Stored size: 306 Bytes

Contents

require "graphql"

module Kanji
  class Graph
    class Schema
      def call(query_type, mutation_type)
        GraphQL::Schema.define do
          query -> { query_type }
          mutation -> { mutation_type }

          max_depth 10
          max_complexity 200
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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