code: func (t *EventSender) query(stub shim.ChaincodeStubInterface, args []string) pb.Response {
  	b, err := stub.GetState("noevents")
  	if err != nil {
  		return shim.Error("Failed to get state")
  	}
  	jsonResp := "{\"NoEvents\":\"" + string(b) + "\"}"
  	return shim.Success([]byte(jsonResp))
  }
docs: // Query function