I am trying to send a object to my backend through a object, but when I try to extract that I am getting [object Object]
.
These are the filters:
public filters: { [key: string]: any } = {};
And I add a key with a object as value to it as filter:
this.filters[key] = {my object};
Now in the backend when I try to get the object like this:
export async function myFunction(
request: Request,
response: Response,
) {
const chartFilters = request.query?.chartFilters;
}
the chartFilters will display [object Object]
.
I’ve tried lots of things but kept getting errors.
Hope someone can help me.