Exception: GraphQL::Execution::Interpreter::ListResultFailedError
- Inherits:
-
GraphQL::Error
- Object
- StandardError
- GraphQL::Error
- GraphQL::Execution::Interpreter::ListResultFailedError
- Defined in:
- lib/graphql/execution/interpreter.rb
Instance Method Summary collapse
-
#initialize(value:, path:, field:) ⇒ ListResultFailedError
constructor
A new instance of ListResultFailedError.
Constructor Details
#initialize(value:, path:, field:) ⇒ ListResultFailedError
Returns a new instance of ListResultFailedError.
99 100 101 102 103 104 105 106 107 108 |
# File 'lib/graphql/execution/interpreter.rb', line 99 def initialize(value:, path:, field:) = "Failed to build a GraphQL list result for field `#{field.path}` at path `#{path.join(".")}`.\n".dup << "Expected `#{value.inspect}` to implement `.each` to satisfy the GraphQL return type `#{field.type.to_type_signature}`.\n" if field.connection? << "\nThis field was treated as a Relay-style connection; add `connection: false` to the `field(...)` to disable this behavior." end super() end |