Skip to content

Commit c3ac0e8

Browse files
authored
fix typo
1 parent 8865126 commit c3ac0e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/code/index.html.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,15 +397,15 @@ Then run \`ruby hello.rb\` with this code in \`hello.rb\`:
397397
\`\`\`ruby
398398
require 'graphql'
399399
400-
QueryType = GraphQL::ObjectType.define do
401-
name 'Query'
400+
class QueryType < GraphQL::Schema::Object
401+
graphql_name 'Query'
402402
field :hello do
403403
type types.String
404404
resolve -> (obj, args, ctx) { 'Hello world!' }
405405
end
406406
end
407407
408-
Schema = GraphQL::Schema.define do
408+
class Schema < GraphQL::Schema
409409
query QueryType
410410
end
411411

0 commit comments

Comments
 (0)