You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
bradjones1
changed the title
JSONAPIURLBuilder::buildPageParam() (and likely others) have undefined properties serialized as undefined in query paramJSONAPIURLBuilder::buildPageParam() (and likely others) have undefined properties serialized as undefined in query param
May 12, 2022
I wanted to use
.page({limit: 10})
in afindRecords
transform, however if you don't also provide theoffset
key, its value gets serialized intoundefined
(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?The text was updated successfully, but these errors were encountered: