I want to send an array of objects into grpc call with reactjs using the "grpc-web-client" module. but it is giving me an error while sending an array of objects. Following is the error:
TypeError: n.toArray is not a function
I don't understand why it is not sending this. and following is my structure of an array of objects which I want to send:
let events = [{
title:"event title"
}];
and in .proto file it is defined as follow:
message EventProfile {
repeated Events events = 2;
}
message EventSlots {
string title = 1;
}
Please, someone, help me to solve this problem.