You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: iso_8601_date_time_spec.rb
    path of file: ./repos/graphql-ruby/spec/graphql/types
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
require "spec_helper"
require "graphql/types/iso_8601_date_time"
d
    
    def parse_date(date_str)
      query_str = <<-GRAPHQL
      query($date: ISO8601DateTime!){
        parseDateTime(date: $date) {
          year
          month
          day
          hour
          minute
          second
          zone
          utcOffset
        }
      }
      GRAPHQL
      full_res = DateTimeTest::Schema.execute(query_str, variables: { date: date_str })
      full_res["errors"] || full_res["data"]["parseDateTime"]
    end