Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/content/code/language-support/ruby/server/graphql-ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Then run `ruby hello.rb` with this code in `hello.rb`:
require 'graphql'

class QueryType < GraphQL::Schema::Object
graphql_name 'Query'
field :hello do
type types.String
resolve -> (obj, args, ctx) { 'Hello world!' }
field :hello, String

def hello
"Hello world!"
end
end

Expand Down