MITLibraries/timdex

View on GitHub
app/controllers/graphql_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

Showing 5 of 5 total issues

Method has too many lines. [14/10]
Open

def ensure_hash(ambiguous_param)
case ambiguous_param
when String
if ambiguous_param.present?
ensure_hash(JSON.parse(ambiguous_param))

Method has too many lines. [13/10]
Open

def execute
variables = ensure_hash(params[:variables])
query = params[:query]
operation_name = params[:operationName]
context = {

Omit the hash value.
Open

result = TimdexSchema.execute(query, variables: variables,

Omit the hash value.
Open

operation_name: operation_name)

Omit the hash value.
Open

context: context,
Category
Status