-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional query is assigned "undefined" string #268
Comments
Upgrade to |
Fix #268 - when optional query param comes
now @nestia/sdk 1.0.12, sdk path function logic is changed, but same bug still happens. |
@industriously Show me your code. It must be a full project containing |
branch: product
URLSearchParams 생성자의 인자는 undefined일 수 있는 값을 허용하지 않습니다. (ex page?:string, page: string | undefined ) new URLSearchParams() constructor not allow Record<string, undefined> type. PS. 혹시나 저 혼자만의 어이없는 실수로 인한 이슈라면 정말 죄송합니다. ㅜㅜ nestia up!! |
Thanks for detailed reporting. I haven't known about the Now, update to |
Fix #268 - filter out `undefined` values from `URLSearchParams`
findMany api has a optional query 'page'.
but if page is undefined, url is written as "/products?page=undefined". and this query value is string "undefined".
i think, "/products?" or "/products" is right.
(so i think, undefined type should be handled separately.)
In Korea,
findMany api를 구현했습니다. page는 optional한 쿼리입니다. sdk를 통해 findMany(connection)를 실행하면 undefined가 문자열 "undefined"로 전달되는 버그가 있습니다. ( ex) "/products?page=undefined" )
이는 URLSearchParams의 처리 방식 때문인 것 같습니다. 제 생각에는 undefined값은 키조차 UrlSearchParams 객체 생성 인자로 전달되지 않아야 할 것 같습니다. ( ex) "/products?", "/products" )
The text was updated successfully, but these errors were encountered: