Closed ZhakalenDk closed 5 months ago
Shouldn't we set the ignoreNull
parameter to true
by default, so that we won't try to convert properties with a value of null
to query parameters? I don't think a query parameter with an empty value wouldn't be of much use 😅
Shouldn't we set the
ignoreNull
parameter totrue
by default, so that we won't try to convert properties with a value ofnull
to query parameters? I don't think a query parameter with an empty value wouldn't be of much use 😅
I get your point. However, the value null is still a value 🤔
We could however check if the type is colelctiojn and mainly state if that is null or empty simply leave it out 🤷
However takes this just replace the code in
GenericExtensions
->ToQuery<TObject>
with this code:This lets the method process arrays.