I am trying to send the request with URL search params as below but I am not able to access a nested object filter on the server side.
axios.get('/get handler', {
params: {
room: 1,
filter: {
fan: 2,
table: 1,
}
});
What Am I possibly doing wrong?
I am using Django restFramework 3 on the server side and I am not able to access filter key in the method. I am accessing query params using request.query_params but when i do request.query_params.get('filter') I get none
request.query_paramsbut when i dorequest.query_params.get('filter')I getnone