Skip to content

Commit bb9cccd

Browse files
committed
rubocop -A
1 parent 7003c3c commit bb9cccd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/controllers/graphql_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ def handle_error_in_development(e)
4747
logger.error e.message
4848
logger.error e.backtrace.join("\n")
4949

50-
render json: { errors: [{ message: e.message, backtrace: e.backtrace }], data: {} }, status: 500
50+
render json: { errors: [ { message: e.message, backtrace: e.backtrace } ], data: {} }, status: 500
5151
end
5252
end

app/graphql/types/query_type.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def node(id:)
1010
context.schema.object_from_id(id, context)
1111
end
1212

13-
field :nodes, [Types::NodeType, null: true], null: true, description: "Fetches a list of objects given a list of IDs." do
14-
argument :ids, [ID], required: true, description: "IDs of the objects."
13+
field :nodes, [ Types::NodeType, null: true ], null: true, description: "Fetches a list of objects given a list of IDs." do
14+
argument :ids, [ ID ], required: true, description: "IDs of the objects."
1515
end
1616

1717
def nodes(ids:)
@@ -28,7 +28,7 @@ def test_field
2828
"Hello World!"
2929
end
3030

31-
field :users, [Types::UserType], null: false
31+
field :users, [ Types::UserType ], null: false
3232
def users
3333
User.all
3434
end

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Application < Rails::Application
1515
# GraphQL-Ruby query log tags:
1616
current_graphql_operation: -> { GraphQL::Current.operation_name },
1717
current_graphql_field: -> { GraphQL::Current.field&.path },
18-
current_dataloader_source: -> { GraphQL::Current.dataloader_source_class },
18+
current_dataloader_source: -> { GraphQL::Current.dataloader_source_class }
1919
]
2020
# Initialize configuration defaults for originally generated Rails version.
2121
config.load_defaults 8.0

0 commit comments

Comments
 (0)