code: func (s *Service) Query(ctx context.Context, req *query.Request) (flux.ResultIterator, error) {
  	resp, err := s.query(ctx, req)
  	if err != nil {
  		return nil, err
  	}
  
  	// Decode the response into the JSON structure.
  	var results Response
  	if err := json.NewDecoder(resp.Body).Decode(&results); err != nil {
  		return nil, err
  	}
  
  	// Return a result iterator using the response.
  	return NewResponseIterator(&results), nil
  }
docs: // Query will execute a query for the influxql.Compiler type against an influxdb 1.x endpoint,
  // and return results using the default decoder.