We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
toQueryString
Hi master Babs ! The current implementation of toQueryString doesn't handle arrays of objects in a user-friendly way.
const query = { 'persons': [ { 'id': 0, 'name': 'john' }, { 'id': 1, 'name': 'alice' } ], 'cars': [ { 'id': 0, 'name': 'audi' }, { 'id': 1, 'name': 'tesla' } ]; toQueryString(query);
"?cars=id:0,name:audi,id:1,name:tesla&persons=id:0,name:john,id:1,name:alice"
"?cars=[object Object],[object Object]&persons=[object Object],[object Object]"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue: Support Array of Objects in
toQueryString
Problem 馃
Hi master Babs !
The current implementation of
toQueryString
doesn't handle arrays of objects in a user-friendly way.Example 馃摑
Expected Result 馃幆
"?cars=id:0,name:audi,id:1,name:tesla&persons=id:0,name:john,id:1,name:alice"
Actual Result 馃く
"?cars=[object Object],[object Object]&persons=[object Object],[object Object]"
The text was updated successfully, but these errors were encountered: