Class: Kanji::Graph::Schema
- Inherits:
-
Object
- Object
- Kanji::Graph::Schema
- Defined in:
- lib/kanji/graph/schema.rb
Instance Method Summary collapse
Instance Method Details
#call(query_type, mutation_type) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/kanji/graph/schema.rb', line 6 def call(query_type, mutation_type) GraphQL::Schema.define do query -> { query_type } mutation -> { mutation_type } max_depth 10 max_complexity 200 end end |