blob: 18cf2cf3e826605e88dce83f4110329c1483a212 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: true
require 'graphql'
module Graphql
class FakeQueryType < ::GraphQL::Schema::Object
graphql_name 'FakeQuery'
field :hello_world, String, null: true do
argument :message, String, required: false
end
field :breaking_field, String, null: true
def hello_world(message: "world")
"Hello #{message}!"
end
def breaking_field
raise "This field is supposed to break"
end
end
end
|