code: func getQueryResultForQueryString(stub shim.ChaincodeStubInterface, queryString string) ([]byte, error) {
  
  	fmt.Printf("- getQueryResultForQueryString queryString:\n%s\n", queryString)
  
  	resultsIterator, err := stub.GetQueryResult(queryString)
  	if err != nil {
  		return nil, err
  	}
  	defer resultsIterator.Close()
  
  	buffer, err := constructQueryResponseFromIterator(resultsIterator)
  	if err != nil {
  		return nil, err
  	}
  
  	fmt.Printf("- getQueryResultForQueryString queryResult:\n%s\n", buffer.String())
  
  	return buffer.Bytes(), nil
  }
docs: // =========================================================================================
  // getQueryResultForQueryString executes the passed in query string.
  // Result set is built and returned as a byte array containing the JSON results.
  // =========================================================================================