We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 145e9ea + b6ac300 commit 760d468Copy full SHA for 760d468
src/content/code/language-support/ruby/server/graphql-ruby.md
@@ -17,10 +17,10 @@ Then run `ruby hello.rb` with this code in `hello.rb`:
17
require 'graphql'
18
19
class QueryType < GraphQL::Schema::Object
20
- graphql_name 'Query'
21
- field :hello do
22
- type types.String
23
- resolve -> (obj, args, ctx) { 'Hello world!' }
+ field :hello, String
+
+ def hello
+ "Hello world!"
24
end
25
26
0 commit comments