lib/rails/graphql/source/active_record_source.rb
def parent_owned_records(collection_result = false)
        data = event.data[:prepared]
        return collection_result ? [] : nil unless data

        result = data.records_by_owner[current_value] || []
        collection_result ? result : result.first
      end
# Once the records are pre-loaded due to +preload_association+, use the
# parent value and the preloader result to get the records
Once the records are pre-loaded due to +preload_association+, use the
parent value and the preloader result to get the records
Once the records are pre - loaded due to + preload_association + use the parent value and the preloader result to get the records
def parent_owned_records(collection_result = false)
        data = event.data[:prepared]
        return collection_result ? [] : nil unless data
        result = data.records_by_owner[current_value] || []
        collection_result ? result : result.first
      end
def parent_owned_records ( collection_result = false ) data = event . data [ :prepared ] return collection_result ? [ ] : nil unless data result = data . records_by_owner [ current_value ] || [ ] collection_result ? result : result . first end
Once the records are pre-loaded due to +preload_association+, use the
parent value and the preloader result to get the records
Once the records are pre - loaded due to + preload_association + use the parent value and the preloader result to get the records
collection_result