Method: GraphQL::Schema::Timeout#max_seconds

Defined in:
lib/graphql/schema/timeout.rb

#max_seconds(query) ⇒ Numeric, false

Called at the start of each query. The default implementation returns the max_seconds: value from installing this plugin.

Parameters:

Returns:

  • (Numeric, false)

    The number of seconds after which to interrupt query execution and call #handle_error, or false to bypass the timeout.



102
103
104
# File 'lib/graphql/schema/timeout.rb', line 102

def max_seconds(query)
  @max_seconds
end