lib/graphql/compatibility/execution_specification/specification_schema.rb in graphql-1.6.4 vs lib/graphql/compatibility/execution_specification/specification_schema.rb in graphql-1.6.5
- old
+ new
@@ -176,10 +176,10 @@
GraphQL::Schema.define do
query_execution_strategy execution_strategy
query query_type
- resolve_type ->(obj, ctx) {
+ resolve_type ->(type, obj, ctx) {
if obj.respond_to?(:birthdate)
person_type
elsif obj.respond_to?(:leader_id)
organization_type
else