Skip to content
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

JSONAPIURLBuilder::buildPageParam() (and likely others) have undefined properties serialized as undefined in query param #958

Open
bradjones1 opened this issue May 12, 2022 · 0 comments

Comments

@bradjones1
Copy link
Contributor

I wanted to use .page({limit: 10}) in a findRecords transform, however if you don't also provide the offset key, its value gets serialized into undefined (the literal string) in the query param, making my backend choke. I couldn't quite figure out where the serialization happens, but I figure this method (and likely others) need to handle absent optional parameters by excluding them?

@bradjones1 bradjones1 changed the title JSONAPIURLBuilder::buildPageParam() (and likely others) have undefined properties serialized as undefined in query param JSONAPIURLBuilder::buildPageParam() (and likely others) have undefined properties serialized as undefined in query param May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant